Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
responseHeaders :: Response body -> ResponseHeadershttp-conduit Network.HTTP.Conduit Response headers sent by the server. Since 0.1.0
shouldStripHeaderOnRedirect :: Request -> HeaderName -> Boolhttp-conduit Network.HTTP.Conduit Decide whether a header must be stripped from the request when following a redirect. Default: keep all headers intact.
type
RequestHeaders = [Header]http-conduit Network.HTTP.Simple A list of Headers. Same type as ResponseHeaders, but useful to differentiate in type signatures.
type
ResponseHeaders = [Header]http-conduit Network.HTTP.Simple A list of Headers. Same type as RequestHeaders, but useful to differentiate in type signatures.
addRequestHeader :: HeaderName -> ByteString -> Request -> Requesthttp-conduit Network.HTTP.Simple Add a request header name/value combination
getRequestHeader :: HeaderName -> Request -> [ByteString]http-conduit Network.HTTP.Simple Get all request header values for the given name
getResponseHeader :: HeaderName -> Response a -> [ByteString]http-conduit Network.HTTP.Simple Get all response header values with the given name
getResponseHeaders :: Response a -> [(HeaderName, ByteString)]http-conduit Network.HTTP.Simple Get all response headers
setRequestHeader :: HeaderName -> [ByteString] -> Request -> Requesthttp-conduit Network.HTTP.Simple Set the given request header to the given list of values. Removes any previously set header values with the same name.
setRequestHeaders :: RequestHeaders -> Request -> Requesthttp-conduit Network.HTTP.Simple Set the request headers, wiping out all previously set headers. This means if you use setRequestHeaders to set some headers and also use one of the other setters that modifies the content-type header (such as setRequestBodyJSON), be sure that setRequestHeaders is evaluated first.