Closes the response connection.
(&self, py: Python)
| 144 | |
| 145 | /// Closes the response connection. |
| 146 | pub fn close(&self, py: Python) -> PyResult<()> { |
| 147 | py.allow_threads(|| { |
| 148 | let _ = self.0.inner().map(drop); |
| 149 | Ok(()) |
| 150 | }) |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | #[pymethods] |