Crate axum_accept

Source
Expand description

Typed accept negotiation for axum, following RFC7231.

§Example

use axum_accept::AcceptExtractor;

#[derive(AcceptExtractor)]
enum Accept {
    #[accept(mediatype="text/plain")]
    TextPlain,
}

Enums§

AcceptRejection
The error type returned in the FromRequestParts implementations.

Derive Macros§

AcceptExtractor
This is the proc macro for AcceptExtractor.