Expand description

Experimental middleware.

Analogous to the middleware module in Actix Web.

Structs

A middleware to catch panics in wrapped handlers and middleware, returning empty 500 responses.

Middleware for registering custom status code based error handlers.

A middleware that sheds load when the inner service isn’t ready.

Middleware transform for from_fn.

Wraps the “next” service in the middleware chain.

Middleware for normalizing a request’s path so that routes can be matched more flexibly.

A middleware that triggers a callback when the worker is panicking.

A middleware to redirect traffic to HTTPS if connection is insecure.

Functions

Wraps an async function to be used as a middleware.

A function middleware to redirect traffic to www. if not already there.