Skip to main content

BODY_BOUND

Constant BODY_BOUND 

Source
pub const BODY_BOUND: usize = _; // 2_097_152usize
Expand description

How much of a request’s body this server reads, admitted or refused.

One bound for both: the router’s body limit is set from it, so it is what every extractor reads an admitted body to, and what authenticate drains a refused one to — a body the server would have taken is one it drains, and a larger one is left where it is either way.