| http-monad-0.0.1: Monad abstraction for HTTP communication allowing lazy transfer and non-I/O simulation | Source code | Contents | Index |
|
Network.Monad.HTTP.Header | Portability | non-portable (not tested) | Stability | experimental |
|
|
|
Description |
Provide the functionality of Network.HTTP.Headers
with qualified identifier style.
|
|
Synopsis |
|
|
|
Documentation |
|
class HasHeaders x where | Source |
|
HasHeaders is a type class for types containing HTTP headers, allowing
you to write overloaded header manipulation functions
for both Request and Response data types, for instance.
| | Methods | | | Instances | |
|
|
|
|
|
The Header data type pairs header names & values.
| Constructors | | Instances | |
|
|
|
|
|
|
|
HTTP HeaderName type, a Haskell data constructor for each
specification-defined header, prefixed with Hdr and CamelCased,
(i.e., eliding the - in the process.) Should you require using
a custom header, there's the HdrCustom constructor which takes
a String argument.
Encoding HTTP header names differently, as Strings perhaps, is an
equally fine choice..no decidedly clear winner, but let's stick
with data constructors here.
| Constructors | HdrCacheControl | | HdrConnection | | HdrDate | | HdrPragma | | HdrTransferEncoding | | HdrUpgrade | | HdrVia | | HdrAccept | | HdrAcceptCharset | | HdrAcceptEncoding | | HdrAcceptLanguage | | HdrAuthorization | | HdrCookie | | HdrExpect | | HdrFrom | | HdrHost | | HdrIfModifiedSince | | HdrIfMatch | | HdrIfNoneMatch | | HdrIfRange | | HdrIfUnmodifiedSince | | HdrMaxForwards | | HdrProxyAuthorization | | HdrRange | | HdrReferer | | HdrUserAgent | | HdrAge | | HdrLocation | | HdrProxyAuthenticate | | HdrPublic | | HdrRetryAfter | | HdrServer | | HdrSetCookie | | HdrTE | | HdrTrailer | | HdrVary | | HdrWarning | | HdrWWWAuthenticate | | HdrAllow | | HdrContentBase | | HdrContentEncoding | | HdrContentLanguage | | HdrContentLength | | HdrContentLocation | | HdrContentMD5 | | HdrContentRange | | HdrContentType | | HdrETag | | HdrExpires | | HdrLastModified | | HdrContentTransferEncoding | MIME entity headers (for sub-parts)
| HdrCustom String | Allows for unrecognised or experimental headers.
|
| Instances | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inserts a header with the given name and value.
Allows duplicate header names.
Adds the new header only if no previous header shares
the same name.
Removes old headers with duplicate name.
Inserts multiple headers.
|
|
|
|
|
Gets a list of headers with a particular Name.
|
|
|
|
|
Lookup presence of specific Name in a list of Headers
Returns the value from the first matching header.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Produced by Haddock version 2.6.0 |