Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
SimpleQuery = [SimpleQueryItem]http-types Network.HTTP.Types.URI A sequence of SimpleQueryItems.
type
SimpleQueryItem = (ByteString, ByteString)http-types Network.HTTP.Types.URI Simplified query item type without support for parameter-less items.
parseQuery :: ByteString -> Queryhttp-types Network.HTTP.Types.URI 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 ' '
parseQueryReplacePlus :: Bool -> ByteString -> Queryhttp-types Network.HTTP.Types.URI 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.
parseQueryText :: ByteString -> QueryTexthttp-types Network.HTTP.Types.URI Parse a QueryText from a ByteString. See parseQuery for details.
queryToQueryText . parseQuery
parseSimpleQuery :: ByteString -> SimpleQueryhttp-types Network.HTTP.Types.URI Parse SimpleQuery from a ByteString. This uses parseQuery under the hood, and will transform any Nothing values into an empty ByteString.
renderSimpleQuery :: Bool -> SimpleQuery -> ByteStringhttp-types Network.HTTP.Types.URI Render the given SimpleQuery into a ByteString. If you want a question mark (?) added to the front of the result, use True.
simpleQueryToQuery :: SimpleQuery -> Queryhttp-types Network.HTTP.Types.URI Convert SimpleQuery to Query.
seq# :: a -> State# d -> (# State# d, a #)ghc-prim GHC.Prim No documentation available.
-
Comparing underlying pointers for equality. Use GHC.Exts from the base package instead of importing this module directly.