Stability | experimental |
---|---|
Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Types for ihttp.
- type HeaderMap = Map ByteString ByteString
- data HttpMethod
- = ConnectMethod
- | DeleteMethod
- | GetMethod
- | HeadMethod
- | OptionsMethod
- | PatchMethod
- | PostMethod
- | PutMethod
- | TraceMethod
- | XMethod ByteString
- data HttpVersion
- data Request = Request {}
- data Response = Response {}
- data HttpError
- = InvalidHeaderError { }
- | InvalidRequestError { }
- | InvalidResponseError { }
- | UnsupportedVersionError { }
Protocol data
type HeaderMap = Map ByteString ByteStringSource
Map of HTTP headers.
data HttpMethod Source
HTTP request method.
ConnectMethod | CONNECT |
DeleteMethod | DELETE |
GetMethod | GET |
HeadMethod | HEAD |
OptionsMethod | OPTIONS |
PatchMethod | PATCH |
PostMethod | POST |
PutMethod | PUT |
TraceMethod | TRACE |
XMethod ByteString | Methods this library doesn't know. |
data HttpVersion Source
HTTP protocol version.
HTTP request line with status code.
Request | |
|
HTTP response line with the status code.
Response | |
|
Miscellaneous types
HTTP error.
InvalidHeaderError | Invalid headers from client/server. |
InvalidRequestError | Invalid requests from client. |
InvalidResponseError | Invalid responses from server. |
UnsupportedVersionError | Unsupported HTTP version. |