Module swagger::add_context
source · Expand description
Hyper service that adds a context to an incoming request and passes it on to a wrapped service.
Structs
- Middleware wrapper service, that should be used as the outermost layer in a stack of hyper services. Adds a context to a plain
hyper::Request
that can be used by subsequent layers in the stack. - Middleware wrapper service, that should be used as the outermost layer in a stack of hyper services. Adds a context to a plain
hyper::Request
that can be used by subsequent layers in the stack. TheAddContextService
struct should not usually be used directly - when constructing a hyper stack useAddContextMakeService
, which will createAddContextService
instances as needed.