| 180 | |
| 181 | #[pyo3(signature = (url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 182 | pub fn post<'python>( |
| 183 | &self, |
| 184 | py: Python<'python>, |
| 185 | url: String, |
| 186 | content: Option<Vec<u8>>, |
| 187 | data: Option<RequestBody>, |
| 188 | headers: Option<HashMap<String, String>>, |
| 189 | timeout: Option<Either<f64, &str>>, |
| 190 | force_http3: Option<bool>, |
| 191 | ) -> Result<pyo3::Bound<'python, PyAny>, PyErr> { |
| 192 | self.request( |
| 193 | py, |
| 194 | "post", |
| 195 | url, |
| 196 | content, |
| 197 | data, |
| 198 | headers, |
| 199 | timeout, |
| 200 | force_http3, |
| 201 | Some(false), |
| 202 | ) |
| 203 | } |
| 204 | |
| 205 | #[pyo3(signature = (url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 206 | pub fn patch<'python>( |