Expand description
Typed accept negotiation for axum, following RFC7231.
§Example
use axum_accept::AcceptExtractor;
#[derive(AcceptExtractor)]
enum Accept {
#[accept(mediatype="text/plain")]
TextPlain,
}
Enums§
- Accept
Rejection - The error type returned in the
FromRequestParts
implementations.
Derive Macros§
- Accept
Extractor - This is the proc macro for
AcceptExtractor
.