Expand description
HTTP service, middleware, and future utilities
This module provides specialized versions of the various tower traits that are easier to work with in the context of HTTP requests and responses.
These traits can be used as aliases of sorts. Ideally, Rust will add trait alias support in the language and these traits can go away.
HttpService: AServiceofhttp::Requesttohttp::Response.HttpMiddleware: Middleware forHttpService.HttpFuture: A future yielding an http::Response, i.e. anHttpServiceresponse future.
These types will (probably) be moved into tower-http.
Structs§
- Lift
Future - Contains an
HttpFutureproviding an implementation ofFuture. - Lift
Service - Contains an
HttpServiceproviding an implementation ofService.
Traits§
- Http
Future - HTTP response future trait
- Http
Middleware - HTTP middleware trait
- Http
Service - An HTTP service
- NewHttp
Service - Creates
HttpServicevalues.