Module http

Source
Expand description

Http protocol support.

Re-exports§

pub use self::client::Client;
pub use self::error::ResponseError;

Modules§

body
Traits and structures to aid consuming and writing HTTP payloads.
client
HTTP Client
encoding
Content-Encoding support
error
Http related errors
h1
HTTP/1 implementation
h2
HTTP/2 implementation
header
Various http headers
test
Test helpers to use during testing.
uri
URI component of request and response lines

Structs§

DateService
HeaderMap
A set of HTTP headers
HttpService
ServiceFactory HTTP1.1/HTTP2 transport implementation
HttpServiceBuilder
A http service builder
Method
The Request Method (VERB)
Request
Request
RequestHead
Response
An HTTP Response
ResponseBuilder
An HTTP response builder
ResponseHead
ServiceConfig
Http service configuration
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Uri
The URI component of a request.
Version
Represents a version of the HTTP spec.

Enums§

ConnectionType
Represents various types of connection
HttpProtocol
Http protocol definition
KeepAlive
Server keep-alive setting
Payload
Type represent streaming payload
RequestHeadType

Traits§

HttpMessage
Trait that implements general purpose operations on http messages

Type Aliases§

PayloadStream
Type represent boxed payload