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
- (.#?) :: 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)
- hHost :: HeaderName
- hExpect :: HeaderName
- 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
- hTransferEncoding :: 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 #
(.#?) :: 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 #
hHost :: HeaderName Source #
hExpect :: HeaderName Source #
type HeaderName = CI ByteString #
Header name
type Header = (HeaderName, ByteString) #
Header
HTTP Header names according to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html