Consumes the `Response` and returns the inner `wreq::Response`.
(&self)
| 42 | |
| 43 | /// Consumes the `Response` and returns the inner `wreq::Response`. |
| 44 | pub fn inner(&self) -> PyResult<wreq::Response> { |
| 45 | self.response |
| 46 | .swap(None) |
| 47 | .and_then(Arc::into_inner) |
| 48 | .ok_or_else(|| Error::Memory) |
| 49 | .map_err(Into::into) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | #[pymethods] |