Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- class ToHeader a where
- toHeader :: HeaderName -> a -> [Header]
- class ToHeaders a where
- (.#) :: FromText a => ResponseHeaders -> HeaderName -> Either String a
- hExpect :: HeaderName
- hHost :: HeaderName
- hTransferEncoding :: HeaderName
- (.#?) :: FromText a => ResponseHeaders -> HeaderName -> Either String (Maybe a)
- (=#) :: ToHeader a => HeaderName -> a -> [Header]
- hdr :: HeaderName -> ByteString -> [Header] -> [Header]
- parseHeadersMap :: FromText a => ByteString -> ResponseHeaders -> Either String (HashMap Text a)
- hAMZToken :: HeaderName
- hAMZTarget :: HeaderName
- hAMZAlgorithm :: HeaderName
- hAMZCredential :: HeaderName
- hAMZExpires :: HeaderName
- hAMZSignedHeaders :: HeaderName
- hAMZContentSHA256 :: HeaderName
- hAMZDate :: HeaderName
- hMetaPrefix :: HeaderName
- hAMZRequestId :: HeaderName
- hAMZNRequestId :: HeaderName
- hAMZNErrorType :: HeaderName
- hAMZNAuth :: HeaderName
- hAMZDecodedContentLength :: HeaderName
- hFormEncoded :: ByteString
- type HeaderName = CI ByteString
- type Header = (HeaderName, ByteString)
- hContentType :: HeaderName
Documentation
class ToHeader a where Source #
Nothing
toHeader :: HeaderName -> a -> [Header] Source #
Instances
ToHeader ByteString Source # | |
Defined in Amazonka.Data.Headers toHeader :: HeaderName -> ByteString -> [Header] Source # | |
ToHeader Text Source # | |
Defined in Amazonka.Data.Headers | |
ToHeader Integer Source # | |
Defined in Amazonka.Data.Headers | |
ToHeader Natural Source # | |
Defined in Amazonka.Data.Headers | |
ToHeader Int Source # | |
Defined in Amazonka.Data.Headers | |
ToHeader a => ToHeader (Sensitive a) Source # | |
Defined in Amazonka.Data.Sensitive | |
ToText a => ToHeader (Maybe a) Source # | |
Defined in Amazonka.Data.Headers | |
ToText a => ToHeader [a] Source # | |
Defined in Amazonka.Data.Headers toHeader :: HeaderName -> [a] -> [Header] Source # | |
(ToByteString k, ToByteString v) => ToHeader (HashMap k v) Source # | |
Defined in Amazonka.Data.Headers |
class ToHeaders a where Source #
Instances
(ToByteString k, ToByteString v) => ToHeaders (HashMap k v) Source # | |
(.#) :: FromText a => ResponseHeaders -> HeaderName -> Either String a infixl 7 Source #
hExpect :: HeaderName Source #
hHost :: HeaderName Source #
(.#?) :: FromText a => ResponseHeaders -> HeaderName -> Either String (Maybe a) infixl 7 Source #
hdr :: HeaderName -> ByteString -> [Header] -> [Header] Source #
parseHeadersMap :: FromText a => ByteString -> ResponseHeaders -> Either String (HashMap Text a) Source #
type HeaderName = CI ByteString Source #
A case-insensitive name of a header field.
This is the part of the header field before the colon: HeaderName: some value
type Header = (HeaderName, ByteString) Source #
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")
hContentType :: HeaderName Source #
Since: http-types-0.7.0