|
| Ella.CGI.Header | | Portability | non-portable | | Stability | experimental | | Maintainer | bjorn@bringert.net |
|
|
|
|
|
| Description |
Parsing of HTTP headers (name, value pairs).
Partly based on code from WASHMail.
Copied directly from the CGI package -- it cannot be imported
as this module is not exposed
|
|
| Synopsis |
|
|
|
|
| Headers
|
|
|
| HTTP headers.
|
|
|
| A string with case insensitive equality and comparisons.
| | Constructors | | Instances | |
|
|
| class HeaderValue a where | Source |
|
| | Methods | | parseHeaderValue :: Parser a | Source |
| | | prettyHeaderValue :: a -> String | Source |
|
| | Instances | |
|
|
|
|
| Content-type
|
|
|
| A MIME media type value.
The Show instance is derived automatically.
Use showContentType to obtain the standard
string representation.
See http://www.ietf.org/rfc/rfc2046.txt for more
information about MIME media types.
| | Constructors | | ContentType | | | ctType :: String | The top-level media type, the general type
of the data. Common examples are
"text", "image", "audio", "video",
"multipart", and "application".
| | ctSubtype :: String | The media subtype, the specific data format.
Examples include "plain", "html",
"jpeg", "form-data", etc.
| | ctParameters :: [(String, String)] | Media type parameters. On common example is
the charset parameter for the "text"
top-level type, e.g. ("charset","ISO-8859-1").
|
|
| Instances | |
|
|
|
|
|
| Parse the standard representation of a content-type.
If the input cannot be parsed, this function calls
fail with a (hopefully) informative error message.
|
|
|
|
| Content-transfer-encoding
|
|
| data ContentTransferEncoding | Source |
|
| Constructors | | ContentTransferEncoding String | |
| Instances | |
|
|
|
|
| Content-disposition
|
|
| data ContentDisposition | Source |
|
| Constructors | | ContentDisposition String [(String, String)] | |
| Instances | |
|
|
|
|
| Utilities
|
|
| parseM :: Monad m => Parser a -> SourceName -> String -> m a | Source |
|
|
| caseInsensitiveEq :: String -> String -> Bool | Source |
|
|
| caseInsensitiveCompare :: String -> String -> Ordering | Source |
|
|
| lexeme :: Parser a -> Parser a | Source |
|
|
|
| RFC 822 LWSP-char
|
|
| p_token :: Parser String | Source |
|
|
| Produced by Haddock version 2.4.2 |