Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
MIME types for HTTP bodies
Synopsis
- class MIMEType mt where
- data FormURLEncoded = FormURLEncoded
- data HTML = HTML
- data JSON
- data FormData a = FormData {}
- data FormDataResult a = FormDataResult {
- formDataParams :: [Param]
- formDataFiles :: [File a]
- data OctetStream = OctetStream
- data PlainText = PlainText
Documentation
class MIMEType mt where Source #
MIME types used in the Accept and Content-Type headers
Instances
MIMEType FormURLEncoded Source # | |
Defined in WebGear.Core.MIMETypes mimeType :: FormURLEncoded -> MediaType Source # | |
MIMEType HTML Source # | |
MIMEType JSON Source # | |
MIMEType OctetStream Source # | |
Defined in WebGear.Core.MIMETypes mimeType :: OctetStream -> MediaType Source # | |
MIMEType PlainText Source # | |
MIMEType (FormData a) Source # | |
data FormURLEncoded Source #
The application/x-www-form-urlencoded MIME type
Instances
MIMEType FormURLEncoded Source # | |
Defined in WebGear.Core.MIMETypes mimeType :: FormURLEncoded -> MediaType Source # |
The text/html MIME type
A JSON MIME type with customizable media type
The multipart/form-data MIME type
data FormDataResult a Source #
Result of parsing a multipart/form-data body from a request. The body can contain both parameters and files.
FormDataResult | |
|
data OctetStream Source #
The application/octet-stream MIME type
Instances
MIMEType OctetStream Source # | |
Defined in WebGear.Core.MIMETypes mimeType :: OctetStream -> MediaType Source # |