tower-conneg 1.0.0

Tower middleware for HTTP content negotiation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Core types for content negotiation.

mod accept;
mod config;
mod content_type;
mod error;
mod extractor;
mod negotiated;
mod response;

pub(crate) use accept::parse_accept_erased;
pub use accept::{AcceptMatch, parse_accept};
pub use config::{ClientConfig, ServerConfig};
pub use content_type::{parse_content_type, parse_content_type_erased};
pub use error::NegotiationError;
pub use extractor::{Negotiate, extract_negotiated_format};
pub use negotiated::NegotiatedFormat;
pub use response::NegotiateResponse;