Expand description
The HTTP related types and functions.
Modules§
- body
- HTTP body.
- cookie
- HTTP cookie parsing and cookie jar management.
- errors
- HTTP Errors.
- form
- Form parse module.
- header
- HTTP header types
- headers
- Typed HTTP Headers
- method
- The HTTP request method
- mime
- Mime
- request
- HTTP request.
- response
- HTTP response.
- uri
- URI component of request and response lines
Structs§
- Header
Map - A set of HTTP headers
- Header
Name - Represents an HTTP header field name
- Header
Value - Represents an HTTP header field value.
- Http
Range - HTTP Range header representation.
- Method
- The Request Method (VERB)
- Mime
- A parsed mime or media type.
- Request
- Represents an HTTP request.
- Response
- Represents an HTTP response.
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Status
Error - HTTP status error information.
- Version
- Represents a version of the HTTP spec.
Enums§
- Parse
Error - Errors happened when read data from http request.
- ReqBody
- Body for HTTP request.
- ResBody
- Body for HTTP response.
Traits§
- Body
- Trait representing a streaming body of a Request or Response.
Type Aliases§
- Parse
Result - Result type with
ParseErrorhas it’s error type. - Status
Result - Result type with
StatusErrorhas it’s error type.