Module swagger::drop_context

source ·
Expand description

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

Structs

  • Middleware wrapper service that drops the context from the incoming request and passes the plain hyper::Request to the wrapped service.
  • Swagger Middleware that wraps a hyper::service::Service and drops any contextual information on the request. Servers will normally want to use DropContextMakeService, which will create a DropContextService to handle each connection, while clients can simply wrap a hyper::Client in the middleware.