Module add_context

Source
Expand description

Hyper service that adds a context to an incoming request and passes it on to a wrapped service.

Structsยง

AddContextMakeService
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.
AddContextService
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. The AddContextService struct should not usually be used directly - when constructing a hyper stack use AddContextMakeService, which will create AddContextService instances as needed.