Skip to main content

Module http

Module http 

Source

Re-exports§

pub use self::request::HttpRequest;
pub use self::response::HttpResponse;
pub use http::HeaderMap;
pub use http::HeaderName;
pub use http::HeaderValue;

Modules§

body
header
HTTP header types
method
The HTTP request method
request
response
status
HTTP status codes
uri
URI component of request and response lines
version
HTTP version

Structs§

Error
A generic “error” for HTTP connections
Extensions
A type map of protocol extensions.
HttpContext
Method
The Request Method (VERB)
Request
Represents an HTTP request.
Response
Represents an HTTP response
StatusCode
An HTTP status code (status-code in RFC 7230 et al.).
Uri
The URI component of a request.
Version
Represents a version of the HTTP spec.

Traits§

HttpContextInterface

Type Aliases§

Result
A Result typedef to use with the http::Error type