url-decoders-0.2.1: Decoders for URL-encoding (aka Percent-encoding)

Safe HaskellNone
LanguageHaskell2010

URLDecoders

Synopsis

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.