Fix leak caused by incomplete parsed_request_finish
request_line_parse returns request.method as a dynamically-allocated
string, which needs to be freed by parsed_request_finish.
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
server.ha: Allow passing net::tcp::listen_option
This allows for passing things like reuseaddr and reuseport.
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Updates for Hare upstream changes
Signed-off-by: Drew DeVault <sir@cmpwn.com>
transport.ha: fix unreachable abort
Define new request method constants
net::http: implement response cases without body
net::http: export new_request{,_body}
cmd/http: add headers via getopt
net/http/header.ha: fix assertion
transport: improve identity transport lifetime
http::do: handle more protoerror cases
Use errors::unsupported if scheme != http(s)
net::http::new_request: exhaustive switch
Fix compilation with latest stdlib
README: update to latest RFC