Module tower_web::util::http [−][src]
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
| LiftFuture |
Contains an |
| LiftService |
Contains an |
Traits
| HttpFuture |
HTTP response future trait |
| HttpMiddleware |
HTTP middleware trait |
| HttpService |
An HTTP service |
| NewHttpService |
Creates |