(&self)
| 275 | } |
| 276 | |
| 277 | fn raise_for_status(&self) -> PyResult<()> { |
| 278 | if self.status_code >= 400 { |
| 279 | return Err( |
| 280 | ImpitPyError(impit::errors::ImpitError::HTTPStatusError(self.status_code)).into(), |
| 281 | ); |
| 282 | } |
| 283 | Ok(()) |
| 284 | } |
| 285 | |
| 286 | fn aclose(slf: Py<Self>, py: Python<'_>) -> PyResult<Bound<'_, PyAny>> { |
| 287 | pyo3_async_runtimes::tokio::future_into_py(py, async move { |
nothing calls this directly
no test coverage detected