Safe Haskell | None |
---|
- data Request h
- = RequestGet Path Version Get
- | RequestPost Path Version (Post h)
- | RequestRaw RequestType Path Version [(ByteString, ByteString)]
- data Get = Get {
- getCacheControl :: Maybe [CacheControl]
- getConnection :: Maybe [Connection]
- getAccept :: Maybe [Accept]
- getAcceptEncoding :: Maybe [AcceptEncoding]
- getAcceptLanguage :: Maybe [AcceptLanguage]
- getHost :: Maybe Host
- getUserAgent :: Maybe [Product]
- getOthers :: [(ByteString, ByteString)]
- data Post h = Post {
- postCacheControl :: Maybe [CacheControl]
- postConnection :: Maybe [Connection]
- postTransferEncoding :: Maybe TransferEncoding
- postAccept :: Maybe [Accept]
- postAcceptEncoding :: Maybe [AcceptEncoding]
- postAcceptLanguage :: Maybe [AcceptLanguage]
- postHost :: Maybe Host
- postUserAgent :: Maybe [Product]
- postContentLength :: Maybe ContentLength
- postContentType :: Maybe ContentType
- postOthers :: [(ByteString, ByteString)]
- postBody :: Pipe () ByteString (HandleMonad h) ()
- data Response p h = Response {
- responseVersion :: Version
- responseStatusCode :: StatusCode
- responseConnection :: Maybe ByteString
- responseDate :: Maybe UTCTime
- responseTransferEncoding :: Maybe TransferEncoding
- responseAcceptRanges :: Maybe ByteString
- responseETag :: Maybe ByteString
- responseServer :: Maybe [Product]
- responseContentLength :: Maybe ContentLength
- responseContentType :: ContentType
- responseLastModified :: Maybe UTCTime
- responseOthers :: [(ByteString, ByteString)]
- responseBody :: p () ByteString (HandleMonad h) ()
- data Version = Version Int Int
- data Path = Path ByteString
- data RequestType
- = RequestTypeGet
- | RequestTypePost
- | RequestTypeRaw ByteString
- data StatusCode
- = Continue
- | SwitchingProtocols
- | OK
- | Created
- | Accepted
- | NonAuthoritativeInformation
- | NoContent
- | ResetContent
- | PartialContent
- | MultipleChoices
- | MovedPermanently
- | Found
- | SeeOther
- | NotModified
- | UseProxy
- | TemporaryRedirect
- | BadRequest
- | Unauthorized
- | PaymentRequired
- | Forbidden
- | NotFound
- | MethodNotAllowed
- | NotAcceptable
- | ProxyAuthenticationRequired
- | RequestTimeout
- | Conflict
- | InternalServerError
- | NotImplemented
- | BadGateway
- | ServiceUnavailable
- | GatewayTimeout
- | HttpVersionNotSupported
- data CacheControl
- = MaxAge Int
- | CacheControlRaw ByteString
- data Connection = Connection ByteString
- data TransferEncoding = Chunked
- data Accept = Accept (ByteString, ByteString) Qvalue
- data AcceptEncoding = AcceptEncoding ByteString Qvalue
- data AcceptLanguage = AcceptLanguage ByteString Qvalue
- data Host = Host ByteString (Maybe Int)
- data ContentLength = ContentLength Int
- data ContentType = ContentType Type Subtype [Parameter]
- data Type
- data Subtype
- = Plain
- | Html
- | Css
- | SubtypeRaw ByteString
- data Parameter
- = Charset Charset
- | ParameterRaw ByteString ByteString
- data Charset
- = Utf8
- | CharsetRaw ByteString
- data Product
- = Product ByteString (Maybe ByteString)
- | ProductComment ByteString
- data Qvalue = Qvalue Double
- type HostName = String
Request and Response
RequestGet Path Version Get | |
RequestPost Path Version (Post h) | |
RequestRaw RequestType Path Version [(ByteString, ByteString)] |
Get | |
|
Show Get |
Post | |
|
Response | |
|
Header Types
First Line
data StatusCode Source
Show StatusCode |
General Header
Request Header
Response Header
Entity Header
Basic Types
Product ByteString (Maybe ByteString) | |
ProductComment ByteString |