Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
header :: HeaderName -> Lens' Options [ByteString]wreq Network.Wreq.Lens A lens onto all headers with the given name (there can legitimately be zero or more). Example:
let opts = defaults & header "Accept" .~ ["*/*"] getWith opts "http://httpbin.org/get"
headers :: Lens' Options [Header]wreq Network.Wreq.Lens A lens onto all headers (there can legitimately be zero or more). In this example, we print all the headers sent by default with every request.
print (defaults ^. headers)
headWith :: Options -> Session -> String -> IO (Response ())wreq Network.Wreq.Session head_ :: Session -> String -> IO (Response ())wreq Network.Wreq.Session headers :: Options -> [Header]wreq Network.Wreq.Types Additional headers to send with each request.
let opts = defaults { headers = [("Accept", "*/*")] } getWith opts "http://httpbin.org/get"
header :: forall (scheme :: Scheme) . ByteString -> ByteString -> Option schemereq Network.HTTP.Req Create an Option that adds a header. Note that if you mappend two headers with the same names the leftmost header will win. This means, in particular, that you cannot create a request with several headers of the same name.
headerRedacted :: forall (scheme :: Scheme) . ByteString -> ByteString -> Option schemereq Network.HTTP.Req Same as header, but with redacted values on print.
headers :: HasHeaders a => a -> Headerssnap-core Snap.Core Retrieve the headers from a datatype that has headers.
headers :: HasHeaders a => a -> Headerssnap-core Snap.Internal.Core Retrieve the headers from a datatype that has headers.
headers :: HasHeaders a => a -> Headerssnap-core Snap.Internal.Http.Types Retrieve the headers from a datatype that has headers.