http/headers: handle Content-Length
http: use faster socket.packet!
http: speed up body reading code
http: use socket.send! instead of socket.send
http: speed up header setting