rseq package:http-types

Split out the query string into a list of keys and values. A few importants points:
  • The result returned is still bytestrings, since we perform no character decoding here. Most likely, you will want to use UTF-8 decoding, but this is left to the user of the library.
  • Percent decoding errors are ignored. In particular, "%Q" will be output as "%Q".
  • It decodes '+' characters to ' '
Same functionality as parseQuery, but with the option to decode '+' characters to ' ' or to preserve any '+' encountered. If you want to replace any '+' with a space, use True.
Parse a QueryText from a ByteString. See parseQuery for details.
queryToQueryText . parseQuery