- queryInput :: SURI -> [(String, Input)]
- bodyInput :: Request -> [(String, Input)]
- formDecode :: String -> [(String, Input)]
- decodeBody :: Maybe ContentType -> ByteString -> [(String, Input)]
- multipartDecode :: [(String, String)] -> ByteString -> [(String, Input)]
- bodyPartToInput :: BodyPart -> (String, Input)
- simpleInput :: String -> Input
- defaultInputType :: ContentType
- pathEls :: String -> [String]
- class Read a => ReadString a where
- readString :: String -> a
Documentation
queryInput :: SURI -> [(String, Input)]Source
formDecode :: String -> [(String, Input)]Source
Decodes application/x-www-form-urlencoded inputs.
decodeBody :: Maybe ContentType -> ByteString -> [(String, Input)]Source
:: [(String, String)] | Content-type parameters |
-> ByteString | Request body |
-> [(String, Input)] | Input variables and values. |
Decodes multipart/form-data input.
bodyPartToInput :: BodyPart -> (String, Input)Source
simpleInput :: String -> InputSource
Packs a string into an Input of type text/plain
defaultInputType :: ContentTypeSource
The default content-type for variables.
class Read a => ReadString a whereSource
Like Read
except Strings and Chars not quoted.
readString :: String -> aSource