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.
rspHeaders :: Response a -> [Header]HTTP Network.HTTP.Base No documentation available.
cookiesToHeader :: [Cookie] -> HeaderHTTP Network.HTTP.Cookie cookieToHeaders ck serialises Cookies to an HTTP request header.
processCookieHeaders :: String -> [Header] -> ([String], [Cookie])HTTP Network.HTTP.Cookie processCookieHeaders dom hdrs
-
HTTP Network.HTTP.Headers HasHeaders is a type class for types containing HTTP headers, allowing you to write overloaded header manipulation functions for both Request and Response data types, for instance.
findHeader :: HasHeaders a => HeaderName -> a -> Maybe StringHTTP Network.HTTP.Headers findHeader hdrNm x looks up hdrNm in x, returning the first header that matches, if any.
getHeaders :: HasHeaders x => x -> [Header]HTTP Network.HTTP.Headers No documentation available.
insertHeader :: HasHeaders a => HeaderSetter aHTTP Network.HTTP.Headers insertHeader hdr val x inserts a header with the given header name and value. Does not check for existing headers with same name, allowing duplicates to be introduce (use replaceHeader if you want to avoid this.)
insertHeaderIfMissing :: HasHeaders a => HeaderSetter aHTTP Network.HTTP.Headers insertHeaderIfMissing hdr val x adds the new header only if no previous header with name hdr exists in x.
insertHeaders :: HasHeaders a => [Header] -> a -> aHTTP Network.HTTP.Headers insertHeaders hdrs x appends multiple headers to x's existing set.
lookupHeader :: HeaderName -> [Header] -> Maybe StringHTTP Network.HTTP.Headers lookupHeader hdr hdrs locates the first header matching hdr in the list hdrs.