Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type HeaderName = CI ByteString
- class HasHeaders a where
- getHeaders :: a -> Map HeaderName ByteString
- getHeaderValue :: HeaderName -> a -> Maybe ByteString
Documentation
type HeaderName = CI ByteString Source #
The name of an HTTP Header. Header names are case insensitive.
class HasHeaders a where Source #
Describes something which has headers
getHeaders :: a -> Map HeaderName ByteString Source #
Retrieve all of the headers which a
has.
getHeaderValue :: HeaderName -> a -> Maybe ByteString Source #
Try to retrieve a specific header from a
with the supplied HeaderName
Instances
HasHeaders (HttpResponse b) Source # | |
Defined in Dormouse.Client.Types getHeaders :: HttpResponse b -> Map HeaderName ByteString Source # getHeaderValue :: HeaderName -> HttpResponse b -> Maybe ByteString Source # | |
HasHeaders (HttpRequest url method body contentTag acceptTag) Source # | |
Defined in Dormouse.Client.Types getHeaders :: HttpRequest url method body contentTag acceptTag -> Map HeaderName ByteString Source # getHeaderValue :: HeaderName -> HttpRequest url method body contentTag acceptTag -> Maybe ByteString Source # |