Modules§
- add_
extension - Middleware that clones a value into each request’s extensions.
- auth
- Authorization related middleware.
- body
- Body types.
- catch_
panic - Convert panics into responses.
- classify
- Tools for classifying responses as either success or failure.
- compression
- Middleware that compresses response bodies.
- cors
- Middleware which adds headers for CORS.
- decompression
- Middleware that decompresses request and response bodies.
- follow_
redirect - Middleware for following redirections.
- limit
- Middleware for limiting request bodies.
- map_
request_ body - Apply a transformation to the request body.
- map_
response_ body - Apply a transformation to the response body.
- metrics
- Middlewares for adding metrics to services.
- normalize_
path - Middleware that normalizes paths.
- propagate_
header - Propagate a header from the request to the response.
- request_
id - Set and propagate request ids.
- sensitive_
headers - Middlewares that mark headers as sensitive.
- services
Service
s that return responses without wrapping otherService
s.- set_
header - Middleware for setting headers on requests and responses.
- set_
status - Middleware to override status codes.
- timeout
- Middleware that applies a timeout to requests.
- trace
- Middleware that adds high level tracing to a
Service
. - validate_
request - Middleware that validates requests.
Enums§
- Compression
Level - Level of compression data should be compressed with.
- Latency
Unit - The latency unit used to report latencies by middleware.
Traits§
- Service
Builder Ext - Extension trait that adds methods to
tower::ServiceBuilder
for adding middleware from tower-http. - Service
Ext - Extension trait that adds methods to any
Service
for adding middleware from tower-http.
Type Aliases§
- BoxError
- Alias for a type-erased error type.