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;
typed-header
Modules§
- Additional bodies.
Either*
types for combining extractors or responses into a single type.- Additional extractors.
- Additional handler utilities.
- json_
lines json-lines
Newline delimited JSON extractor and response. - Additional middleware utilities.
- protobuf
protobuf
Protocol Buffer extractor and response. - Additional types for generating responses.
- Additional types for defining routes.
- typed_
header typed-header
Extractor and response for typed headers.
Macros§
- json
erased-json
Construct anErasedJson
response from a JSON literal.
Structs§
- Typed
Header typed-header
Extractor and response that works with typed header values fromheaders
.