DEFAULT_MAX_BODY_SIZE

Constant DEFAULT_MAX_BODY_SIZE 

Source
pub const DEFAULT_MAX_BODY_SIZE: usize = MB_2; // 2_097_152usize
Expand description

The default maximum body size. This constant defines the maximum size of an HTTP request body to prevent excessive memory usage and potential denial of service attacks.