Expand description
Reusable middleware for Axum applications
Re-exports§
pub use request_id::RequestIdLayer;pub use request_id::add_request_id;pub use request_id::RequestId;pub use request_id::REQUEST_ID_HEADER;pub use logging::LoggingLayer;pub use logging::log_request;
Modules§
- logging
- Request logging middleware
- request_
id - Request ID middleware for tracing requests
Functions§
- cors_
with_ origins - Create a CORS layer with specific allowed origins
- permissive_
cors - Create a permissive CORS layer for development