Skip to main content

read_text_limited

Function read_text_limited 

Source
pub async fn read_text_limited(
    response: Response,
    limit: usize,
) -> Result<String, BodyReadError>
Expand description

Read the whole body as text, failing when it is larger than limit bytes.

ยงErrors

Same as read_body_limited.