logo
pub struct HttpService<T, S, B, X = ExpectHandler, U = UpgradeHandler> { /* private fields */ }
Expand description

A ServiceFactory for HTTP/1.1 or HTTP/2 protocol.

Implementations

Create OpenSSL based service.

Create Rustls based service.

Constructs builder for HttpService instance.

Constructs new HttpService instance from service with default config.

Sets service for Expect: 100-Continue handling.

An expect service is called with requests that contain an Expect header. A successful response type is also a request which will be forwarded to the main service.

Sets service for custom Connection: Upgrade handling.

If service is provided then normal requests handling get halted and this service get called with original request and framed object.

Create simple tcp stream service

Trait Implementations

Responses given by the created services.

Errors produced by the created services.

Service factory configuration.

The kind of Service created by this factory.

Errors potentially raised while building a service.

The future of the Service instance.g

Create and return a new service asynchronously.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert Self to a ServiceFactory

Map this service’s output to a different type, returning a new service of the resulting type. Read more

Map this service’s error to a different error, returning a new service.

Map this factory’s init error to a different error, returning a new service.

Call another service after call to this one has resolved successfully.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.