Expand description
Extra utilities for axum
.
§Feature flags
axum-extra uses a set of [feature flags] to reduce the amount of compiled and optional dependencies.
The following optional features are available:
Name | Description | Default? |
---|---|---|
async-read-body | Enables the AsyncReadBody body | No |
cookie | Enables the CookieJar extractor | No |
cookie-private | Enables the PrivateCookieJar extractor | No |
cookie-signed | Enables the SignedCookieJar extractor | No |
cookie-key-expansion | Enables the Key::derive_from method | No |
erased-json | Enables the ErasedJson response | No |
form | Enables the Form extractor | No |
json-deserializer | Enables the JsonDeserializer extractor | No |
json-lines | Enables the JsonLines extractor and response | No |
multipart | Enables the Multipart extractor | No |
protobuf | Enables the Protobuf extractor and response | No |
query | Enables the Query extractor | No |
tracing | Log rejections from built-in extractors | Yes |
typed-routing | Enables the TypedPath routing utilities | No |
typed-header | Enables the TypedHeader extractor and response | No |
Re-exports§
pub use headers;
Modules§
- Additional bodies.
Either*
types for combining extractors or responses into a single type.- Additional extractors.
- Additional handler utilities.
- Additional middleware utilities.
- Additional types for generating responses.
- Additional types for defining routes.
- Extractor and response for typed headers.
Structs§
- Extractor and response that works with typed header values from
headers
.