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.
type
Header = Header' '[Optional, Strict]servant Servant.API.Header Extract the given header's value as a value of type a. I.e. header sent by client, parsed by server. Example:
>>> newtype Referer = Referer Text deriving (Eq, Show) >>> >>> -- GET /view-my-referer >>> type MyApi = "view-my-referer" :> Header "from" Referer :> Get '[JSON] Referer
data
Header' (mods :: [Type]) (sym :: Symbol) aservant Servant.API.Header No documentation available.
Header :: a -> ResponseHeader (sym :: Symbol) aservant Servant.API.ResponseHeaders No documentation available.
type family
HeaderValMap (f :: Type -> Type) (xs :: [Type]) :: [Type]servant Servant.API.ResponseHeaders No documentation available.
-
servant Servant.API.ResponseHeaders Response Header objects. You should never need to construct one directly. Instead, use addOptionalHeader.
Headers :: a -> HList ls -> Headers (ls :: [Type]) aservant Servant.API.ResponseHeaders No documentation available.
type
HeadNoContent = NoContentVerb 'HEADservant Servant.API.Verbs HEAD with 204 status code.
type
Header = (HeaderName, ByteString)http-conduit Network.HTTP.Simple A full HTTP header field with the name and value separated. E.g. "Content-Length: 28" parsed into a Header would turn into ("Content-Length", "28")
-
Parsing the top of a Haskell source file to get its module name, imports and options. (c) Simon Marlow 2005 (c) Lemmih 2006
-
ghc GHC.Types.ForeignCall No documentation available.