happstack-server-0.4.1: Web related tools and services.
Source code
Contents
Index
Happstack.Server.MessageWrap
Synopsis
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
bodyInput
::
Request
-> [(
String
,
Input
)]
Source
formDecode
::
String
-> [(
String
,
Input
)]
Source
Decodes application/x-www-form-urlencoded inputs.
decodeBody
::
Maybe
ContentType
->
ByteString
-> [(
String
,
Input
)]
Source
multipartDecode
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
->
Input
Source
Packs a string into an Input of type
text/plain
defaultInputType
::
ContentType
Source
The default content-type for variables.
pathEls
::
String
-> [
String
]
Source
Get the path components from a String.
class
Read
a =>
ReadString
a
where
Source
Like
Read
except Strings and Chars not quoted.
Methods
readString
::
String
-> a
Source
Instances
ReadString
Char
ReadString
Double
ReadString
Float
ReadString
Int
ReadString
SURI
ReadString
[
Char
]
Produced by
Haddock
version 2.6.1