change the order of static function so that it cannot be misused (as well as adding comment)
[http1client] simplify
[wip] let the apps touch client->sock->input directly (guaranteed to only contain the content)
close the connection in case upstream sends more data than advertised
update proxy.c following the changes in http1client