Stability | provisional |
---|---|
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides an AWS compliant V2 Header request signer. It is based
heavily on boto, specifically boto's
HmacAuthV1Handler
AWS capable signer. AWS documentation is available
here.
Notice: Limitations include an inability to sign with a security token and
inability to overwrite the Date
header with an expiry.
Synopsis
- v2Header :: Signer
- newSigner :: RequestHeaders -> ByteString -> ByteString -> QueryString -> ByteString
- toSignerQueryBS :: QueryString -> ByteString
- constructSigningHeader :: Header -> ByteString
- constructSigningQuery :: QueryString -> QueryString
- constructFullPath :: ByteString -> ByteString -> ByteString
- unionNecessaryHeaders :: [Header] -> [Header]
Documentation
newSigner :: RequestHeaders -> ByteString -> ByteString -> QueryString -> ByteString Source #
Construct a full header signer following the V2 Header scheme
toSignerQueryBS :: QueryString -> ByteString Source #
The following function mostly follows the toBS in amazonka QueryString except for single QValue or single QPair keys not being suffixed with an equals.
constructSigningHeader :: Header -> ByteString Source #
Construct a header string for signing
constructSigningQuery :: QueryString -> QueryString Source #
Constructs a query string for signing
constructFullPath :: ByteString -> ByteString -> ByteString Source #
unionNecessaryHeaders :: [Header] -> [Header] Source #