Struct tower_http::limit::RequestBodyLimitLayer
source · pub struct RequestBodyLimitLayer { /* private fields */ }
Available on crate feature
limit
only.Expand description
Layer that applies the RequestBodyLimit
middleware that intercepts requests
with body lengths greater than the configured limit and converts them into
413 Payload Too Large
responses.
See the module docs for an example.
Implementations§
Trait Implementations§
source§impl Clone for RequestBodyLimitLayer
impl Clone for RequestBodyLimitLayer
source§fn clone(&self) -> RequestBodyLimitLayer
fn clone(&self) -> RequestBodyLimitLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more