pub async fn read_text_capped( response: Response, max_bytes: usize, ) -> Result<String, Error>
Read response body as text, capped at max_bytes. Lossy UTF-8 on non-UTF-8 input.
max_bytes