refactoring libchan protocol to use std request header