Closes the response connection.
(&'py self, py: Python<'py>)
| 201 | |
| 202 | /// Closes the response connection. |
| 203 | pub fn close<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> { |
| 204 | let res = self.inner(); |
| 205 | future_into_py(py, async move { |
| 206 | let _ = res.map(drop); |
| 207 | Ok(()) |
| 208 | }) |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | #[pymethods] |