|
Happstack.Server.HTTP.Types |
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Converts a Request into a String representing the corresponding URL
|
|
|
Takes a list of (key,val) pairs and converts it into Headers. The
keys will be converted to lowercase
|
|
|
Lookup header value. Key is case-insensitive.
|
|
|
Lookup header value. Key is a case-insensitive bytestring.
|
|
|
Lookup header value with a case-sensitive key. The key must be lowercase.
|
|
|
Returns True if the associated key is found in the Headers. The lookup
is case insensitive.
|
|
|
Acts as hasHeader with ByteStrings
|
|
|
Acts as hasHeaderBS but the key is case sensitive. It should be
in lowercase.
|
|
|
Associates the key/value pair in the headers. Forces the key to be
lowercase.
|
|
|
Acts as setHeader but with ByteStrings.
|
|
|
Sets the key to the HeaderPair. This is the only way to associate a key
with multiple values via the setHeader* functions. Does not force the key
to be in lowercase or guarantee that the given key and the key in the HeaderPair will match.
|
|
|
Add a key/value pair to the header. If the key already has a value
associated with it, then the value will be appended.
Forces the key to be lowercase.
|
|
|
Acts as addHeader except for ByteStrings
|
|
|
Add a key/value pair to the header using the underlying HeaderPair data
type. Does not force the key to be in lowercase or guarantee that the given key and the key in the HeaderPair will match.
|
|
|
Sets the Response status code to the provided Int and lifts the computation
into a Monad.
|
|
|
HTTP configuration
| Constructors | |
|
|
|
Default configuration contains no validator and the port is set to 8000
|
|
|
Creates a Response with the given Int as the status code and the provided
String as the body of the Response
|
|
|
Acts as result but works with ByteStrings directly.
|
|
|
Sets the Response's status code to the given Int and redirects to the given URI
|
|
|
Result flags
| Constructors | RsFlags | | rsfContentLength :: Bool | whether a content-length header will be added to the result.
|
|
| Instances | |
|
|
|
Default RsFlags that will include the content-length header
|
|
|
Don't display a Content-Lenght field for the Result.
|
|
|
HTTP version
| Constructors | | Instances | |
|
|
|
HTTP request method
| Constructors | GET | | HEAD | | POST | | PUT | | DELETE | | TRACE | | OPTIONS | | CONNECT | |
| Instances | |
|
|
|
Combined headers.
|
|
|
Should the connection be used for further messages after this.
| isHTTP1_0 && hasKeepAlive || isHTTP1_1 && hasNotConnectionClose
|
|
|
|
|
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 | |
|
|
Produced by Haddock version 2.6.1 |