pub fn validate_body_size(size: usize) -> Result<(), ValidationError>Expand description
Validate that a request body does not exceed MAX_BODY_SIZE.
Call this at the deserialization boundary before parsing untrusted input.
§Errors
Returns ValidationError::ParameterOutOfRange if size > MAX_BODY_SIZE.