Trait tower_web::util::http::NewHttpService[][src]

pub trait NewHttpService: Sealed {
    type RequestBody: BufStream;
    type ResponseBody: BufStream;
    type Error;
    type Service: HttpService<RequestBody = Self::RequestBody, ResponseBody = Self::ResponseBody, Error = Self::Error>;
    type InitError;
    type Future: Future<Item = Self::Service, Error = Self::InitError>;
    fn new_http_service(&self) -> Self::Future;
}

Creates HttpService values.

This is not intended to be implemented directly. Instead, it is a trait alias of sorts, aliasing tower_service::NewService trait with http::Request and http::Response types.

Associated Types

The HTTP request body handled by the service.

The HTTP response body returned by the service.

Errors produced by the service

The Service value created by this factory

Errors produced while building a service.

The future of the Service instance.

Required Methods

Create and return a new service value asynchronously.

Implementors