| 300 | |
| 301 | #[pyo3(signature = (url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 302 | pub fn trace<'python>( |
| 303 | &self, |
| 304 | py: Python<'python>, |
| 305 | url: String, |
| 306 | content: Option<Vec<u8>>, |
| 307 | data: Option<RequestBody>, |
| 308 | headers: Option<HashMap<String, String>>, |
| 309 | timeout: Option<Either<f64, &str>>, |
| 310 | force_http3: Option<bool>, |
| 311 | ) -> Result<pyo3::Bound<'python, PyAny>, PyErr> { |
| 312 | self.request( |
| 313 | py, |
| 314 | "trace", |
| 315 | url, |
| 316 | content, |
| 317 | data, |
| 318 | headers, |
| 319 | timeout, |
| 320 | force_http3, |
| 321 | Some(false), |
| 322 | ) |
| 323 | } |
| 324 | |
| 325 | #[pyo3(signature = (method, url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 326 | pub fn stream<'python>( |