| Stability | experimental |
|---|---|
| Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Network.IHttp.Types
Contents
Description
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.
Constructors
| 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. |
Instances
HTTP request line with status code.
Constructors
| Request | |
Fields
| |
HTTP response line with the status code.
Constructors
| Response | |
Fields
| |
Miscellaneous types
HTTP error.
Constructors
| InvalidHeaderError | Invalid headers from client/server. |
Fields | |
| InvalidRequestError | Invalid requests from client. |
Fields | |
| InvalidResponseError | Invalid responses from server. |
Fields | |
| UnsupportedVersionError | Unsupported HTTP version. |
Fields | |