Struct poem::middleware::SizeLimit
source · pub struct SizeLimit { /* private fields */ }
Expand description
Middleware for limit the request payload size.
If the incoming request does not contain the Content-Length
header, it
will return LENGTH_REQUIRED
status code.
Errors
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SizeLimit
impl Send for SizeLimit
impl Sync for SizeLimit
impl Unpin for SizeLimit
impl UnwindSafe for SizeLimit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more