- data Method
- data Version = Version {}
- type Key = String
- type Value = String
- newtype Headers = Headers {}
- data Request = Request {}
- data Response = Response {}
- data Http a = Http {}
- methods :: [Method]
- http10 :: Version
- http11 :: Version
- emptyHeaders :: Headers
- emptyRequest :: Http Request
- emptyResponse :: Http Response
- major :: Version :-> Int
- minor :: Version :-> Int
- _uri :: Request :-> String
- _method :: Request :-> Method
- _status :: Response :-> Status
- headers :: Http a :-> Headers
- version :: Http a :-> Version
- headline :: Http a :-> a
- method :: Http Request :-> Method
- uri :: Http Request :-> String
- asUri :: Http Request :-> Uri
- status :: Http Response :-> Status
- normalizeHeader :: Key -> Key
- header :: Key -> Http a :-> Maybe Value
Documentation
List of HTTP request methods.
HTTP protocol version.
HTTP headers as mapping from keys to values.
Request specific part of HTTP messages.
Response specific part of HTTP messages.
An HTTP message. The message body is *not* included.
Create an empty set of headers.
emptyRequest :: Http RequestSource
Create an empty HTTP request message.
emptyResponse :: Http ResponseSource
Create an empty HTTP response message.
asUri :: Http Request :-> UriSource
Label to access the URI part of an HTTP request message and access it as a true URI data type.
status :: Http Response :-> StatusSource
Label to access the status part of an HTTP response message.
normalizeHeader :: Key -> KeySource
Normalize the capitalization of an HTTP header key.