Closed rentallect closed 4 years ago
I modified set_http_headern
not set_http_header
. The set_http_headern
func is only reachable during response parsing, and set_http_header
is only used during request writing, so we should be fine, right?
I modified
set_http_headern
notset_http_header
. Theset_http_headern
func is only reachable during response parsing, andset_http_header
is only used during request writing, so we should be fine, right?
maybe it works, but I don't want set_http_headern
and set_http_header
to have different semantics. can you rename the changed function to add_...
?
replacing of the header via
set_
is needed for request headers, so that individual request can override client/default headersI would prefer a separate function to add a header and used it for responses. we can even call it
add_http_header