separate http handler and network connection
receive http header