Alternative f => [f a] -> f a -containers -base +http
catchIO a h handles IO action exceptions throughout codebase; version-specific tweaks better go here.
normalizeRequest opts req is the entry point to use to normalize your request prior to transmission (or other use.) Normalization is controlled via the NormalizeRequestOptions record.
setRequestVersion v req returns a new request, identical to req, but with its HTTP version set to v.
setResponseVersion v rsp returns a new response, identical to rsp, but with its HTTP version set to v.
getAuth req fishes out the authority portion of the URL in a request's Host header.
might need changing in future 1) to support * uri in OPTIONS request 2) transparent support for both relative & absolute uris, although this should already work (leave scheme & host parts empty).
Show more results