Skip to main content

Module middleware

Module middleware 

Source
Expand description

Middleware trait and built-in middleware implementations.

Middleware inspects or modifies an incoming request. It can either pass the request forward (returning Ok(request)) or reject it (returning Err(response)).

Structs§

MiddlewareChain
Ordered chain of middleware. Each middleware is executed in sequence.
PathBlocker
Blocks requests whose path matches a configured set of paths.
RequiredHeaders
Rejects requests that are missing required headers.

Traits§

Middleware
A single middleware in the proxy pipeline.

Type Aliases§

MiddlewareResult
Outcome of a middleware decision: either the (possibly modified) request continues downstream, or a response is returned immediately.