Stability | experimental |
---|---|
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
This module provides auxiliary functions necessary for the AWS compliant V2 Header request signer. See: Network.AWS.Sign.V2Header
Synopsis
- 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
Testing
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 #