Skip to main content

layers

Function layers 

Source
pub fn layers<S>(router: Router<S>, options: HttpOptions) -> Router<S>
where S: Clone + Send + Sync + 'static,
Expand description

Applies the complete Baukit HTTP defaults stack to an Axum router.

Construct options through HttpOptions::default or HttpOptions::from_config. Invalid zero-valued public limits are replaced by their sane defaults; validated constructors reject them earlier.