Module
HTTPure.Query
- Package
- purescript-httpure
- Repository
- cprussin/purescript-httpure
#Query Source
type Query = StrMap String
The Query type is a StrMap of Strings, with one entry per query parameter
in the request. For any query parameters that don't have values
(/some/path?query
), the value in the StrMap for that parameter will be
the string "true". Note that this type has an implementation of Lookup for
String
keys defined by lookpStrMap
in Lookup.purs
because
lookupStrMap
is defined for any StrMap
of Monoids
. So you can do
something like query !! "foo"
to get the value of the query parameter
"foo".