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 BAD_REQUEST
status code.
Errors
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SizeLimit
impl UnwindSafe for SizeLimit
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more