Added missing const modifiers.
Moved message length handling to http_util.
Moved hop-by-hop header handling to http_util.