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