collect_bounded_body

Function collect_bounded_body 

Source
pub async fn collect_bounded_body(
    payload: &mut Payload,
    maximum: usize,
) -> Result<Vec<u8>, DavBodyError>
Expand description

Collects a bounded request body for parsing by the protocol or product layer.

ยงErrors

Returns DavBodyError when reading fails or the configured maximum is exceeded.