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.
pub async fn read_text_limited(
response: Response,
limit: usize,
) -> Result<String, BodyReadError>Read the whole body as text, failing when it is larger than limit bytes.
Same as read_body_limited.