Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
head1 :: Foldable1 f => f a -> arelude Relude.Extra.Foldable1 The first element of a non-empty data structure.
>>> head1 (1 :| [2, 3, 4]) 1
header :: Int -> Inlines -> Blockspandoc-types Text.Pandoc.Builder No documentation available.
headerWith :: Attr -> Int -> Inlines -> Blockspandoc-types Text.Pandoc.Builder No documentation available.
head_ :: Monad m => Stream (Of a) m r -> m (Maybe a)streaming Streaming.Prelude No documentation available.
headWith :: Options -> String -> IO (Response ())wreq Network.Wreq Issue a HEAD request, using the supplied Options. Example:
let opts = defaults & param "foo" .~ ["bar"] headWith opts "http://httpbin.org/get"
>>> let opts = defaults & param "foo" .~ ["bar"] >>> r <- headWith opts "http://httpbin.org/get" >>> r ^? responseHeader "Connection" Just "keep-alive"
head_ :: String -> IO (Response ())wreq Network.Wreq Issue a HEAD request. Example:
head_ "http://httpbin.org/get"
>>> r <- head_ "http://httpbin.org/get" >>> r ^? responseHeader "Content-Type" Just "application/json"
header :: HeaderName -> Lens' Options [ByteString]wreq Network.Wreq 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 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)
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)