| 228 | |
| 229 | #[pyo3(signature = (url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 230 | pub fn put<'python>( |
| 231 | &self, |
| 232 | py: Python<'python>, |
| 233 | url: String, |
| 234 | content: Option<Vec<u8>>, |
| 235 | data: Option<RequestBody>, |
| 236 | headers: Option<HashMap<String, String>>, |
| 237 | timeout: Option<Either<f64, &str>>, |
| 238 | force_http3: Option<bool>, |
| 239 | ) -> Result<pyo3::Bound<'python, PyAny>, PyErr> { |
| 240 | self.request( |
| 241 | py, |
| 242 | "put", |
| 243 | url, |
| 244 | content, |
| 245 | data, |
| 246 | headers, |
| 247 | timeout, |
| 248 | force_http3, |
| 249 | Some(false), |
| 250 | ) |
| 251 | } |
| 252 | |
| 253 | #[pyo3(signature = (url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 254 | pub fn delete<'python>( |