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
- data QueryString
- parseQueryString :: ByteString -> QueryString
- pair :: ToQuery a => ByteString -> a -> QueryString -> QueryString
- (=:) :: ToQuery a => ByteString -> a -> QueryString
- toQueryList :: (IsList a, ToQuery (Item a)) => ByteString -> a -> QueryString
- toQueryMap :: (ToQuery k, ToQuery v) => ByteString -> ByteString -> ByteString -> HashMap k v -> QueryString
- class ToQuery a where
- toQuery :: a -> QueryString
Documentation
data QueryString Source #
Structured representation of a query string.
Some operations (e.g., sqs:CreateQueue)
use query parameters to pass structured data like lists and maps,
which is why this type is more complicatated than the
[(ByteString, Maybe ByteString)]
from http-types
that you may
have expected here.
Instances
pair :: ToQuery a => ByteString -> a -> QueryString -> QueryString Source #
(=:) :: ToQuery a => ByteString -> a -> QueryString infixr 7 Source #
toQueryList :: (IsList a, ToQuery (Item a)) => ByteString -> a -> QueryString Source #
toQueryMap :: (ToQuery k, ToQuery v) => ByteString -> ByteString -> ByteString -> HashMap k v -> QueryString Source #
class ToQuery a where Source #
Nothing
toQuery :: a -> QueryString Source #
default toQuery :: ToText a => a -> QueryString Source #