(
&self,
py: Python<'py>,
method: Method,
url: PyBackedStr,
kwds: Option<RequestParams>,
)
| 127 | /// Make a request with the given method and URL. |
| 128 | #[pyo3(signature = (method, url, **kwds))] |
| 129 | pub fn request<'py>( |
| 130 | &self, |
| 131 | py: Python<'py>, |
| 132 | method: Method, |
| 133 | url: PyBackedStr, |
| 134 | kwds: Option<RequestParams>, |
| 135 | ) -> PyResult<Bound<'py, PyAny>> { |
| 136 | let client = self.0.clone(); |
| 137 | future_into_py(py, execute_request(client, method, url, kwds)) |
| 138 | } |
| 139 | |
| 140 | /// Make a WebSocket request to the given URL. |
| 141 | #[pyo3(signature = (url, **kwds))] |