Safe Haskell | None |
---|---|
Language | Haskell2010 |
URLDecoders
Synopsis
- asciiQuery :: ByteString -> Either Text (HashMap ByteString [ByteString])
- utf8Query :: ByteString -> Either Text (HashMap Text [Text])
Documentation
asciiQuery :: ByteString -> Either Text (HashMap ByteString [ByteString]) Source #
Decodes the query part of a URL (the one following the question mark) or
the content of type application/x-www-form-urlencoded
.
Produces a hash map of lists of values, interpreting the keys ending with []
as arrays, as well as the repititive keys.
utf8Query :: ByteString -> Either Text (HashMap Text [Text]) Source #
Decodes the query part of a URL (the one following the question mark) or
the content of type application/x-www-form-urlencoded
,
immediately applying a UTF8-decoding to it.
Produces a hash map of lists of values, interpreting the keys ending with []
as arrays, as well as the repititive keys.