Convert the response into a `Stream` of `Bytes` from the body.
(&self, py: Python)
| 192 | |
| 193 | /// Convert the response into a `Stream` of `Bytes` from the body. |
| 194 | pub fn stream(&self, py: Python) -> PyResult<Streamer> { |
| 195 | py.allow_threads(|| { |
| 196 | self.inner() |
| 197 | .map(wreq::Response::bytes_stream) |
| 198 | .map(Streamer::new) |
| 199 | }) |
| 200 | } |
| 201 | |
| 202 | /// Closes the response connection. |
| 203 | pub fn close<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> { |