Module http

Module http 

Source
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§

HeaderMap
A set of HTTP headers
HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
HttpRange
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.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
StatusError
HTTP status error information.
Version
Represents a version of the HTTP spec.

Enums§

ParseError
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§

ParseResult
Result type with ParseError has it’s error type.
StatusResult
Result type with StatusError has it’s error type.