Crate axum_extra

Source
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:

NameDescriptionDefault?
async-read-bodyEnables the AsyncReadBody bodyNo
attachmentEnables the Attachment responseNo
cookieEnables the CookieJar extractorNo
cookie-privateEnables the PrivateCookieJar extractorNo
cookie-signedEnables the SignedCookieJar extractorNo
cookie-key-expansionEnables the Key::derive_from methodNo
erased-jsonEnables the ErasedJson responseNo
error-responseEnables the InternalServerError responseNo
formEnables the Form extractorNo
json-deserializerEnables the JsonDeserializer extractorNo
json-linesEnables the JsonLines extractor and responseNo
multipartEnables the Multipart extractorNo
protobufEnables the Protobuf extractor and responseNo
queryEnables the Query extractorNo
tracingLog rejections from built-in extractorsYes
typed-routingEnables the TypedPath routing utilitiesNo
typed-headerEnables the TypedHeader extractor and responseNo
file-streamEnables the FileStream responseNo

Re-exports§

pub use headers;typed-header

Modules§

body
Additional bodies.
either
Either* types for combining extractors or responses into a single type.
extract
Additional extractors.
handler
Additional handler utilities.
json_linesjson-lines
Newline delimited JSON extractor and response.
middleware
Additional middleware utilities.
protobufprotobuf
Protocol Buffer extractor and response.
response
Additional types for generating responses.
routing
Additional types for defining routes.
typed_headertyped-header
Extractor and response for typed headers.

Macros§

jsonerased-json
Construct an ErasedJson response from a JSON literal.

Structs§

TypedHeadertyped-header
Extractor and response that works with typed header values from headers.