diff --git a/src/response.rs b/src/response.rs index 6cfab3a..9058aad 100644 --- a/src/response.rs +++ b/src/response.rs @@ -183,6 +183,11 @@ impl Response { /// # Ok(()) /// # } /// ``` + /// + /// # Note + /// + /// This consumes the body. Trying to read more, or use of `response.json()` + /// will return empty values. pub fn text(&mut self) -> ::Result { let len = self.headers().get::<::header::ContentLength>() .map(|ct_len| **ct_len)