Module actix_web::middleware[][src]

Commonly used middleware.

Structs

Compat

Middleware for enabling any middleware to be used in Resource::wrap, Scope::wrap and Condition.

Compress

Middleware for compressing response payloads.

Condition

Middleware for conditionally enabling other middleware.

DefaultHeaders

Middleware for setting default response headers.

ErrorHandlers

Middleware for registering custom status code based error handlers.

Logger

Middleware for logging request and response summaries to the terminal.

NormalizePath

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

Enums

ErrorHandlerResponse

Return type for ErrorHandlers custom handlers.

TrailingSlash

Determines the behavior of the NormalizePath middleware.