Skip to main content

Module http

Module http 

Source
Expand description

HTTP networking support

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

body
error
The http portion of wstd uses anyhow::Error as its Error type.
request
response
server
HTTP servers

Structs§

Authority
Represents the authority component of a URI.
Body
A HTTP Body.
Client
An HTTP client.
HeaderMap
A specialized multimap for header names and values.
HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
InvalidUri
An error resulting from a failed attempt to construct a URI.
Method
The Request Method (VERB)
PathAndQuery
Represents the path component of a URI
Request
Represents an HTTP request.
Response
Represents an HTTP response
Scheme
Represents the scheme component of a URI
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Uri
The URI component of a request.

Enums§

ErrorCode
These cases are inspired by the IANA HTTP Proxy Error Types: https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types

Traits§

BodyExt
An extension trait for http_body::Body adding various combinators and adapters