| 153 | |
| 154 | #[pyo3(signature = (url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 155 | pub fn head( |
| 156 | &self, |
| 157 | py: Python<'_>, |
| 158 | url: String, |
| 159 | content: Option<Vec<u8>>, |
| 160 | data: Option<RequestBody>, |
| 161 | headers: Option<HashMap<String, String>>, |
| 162 | timeout: Option<Either<f64, &str>>, |
| 163 | force_http3: Option<bool>, |
| 164 | ) -> Result<response::ImpitPyResponse, ImpitPyError> { |
| 165 | self.request( |
| 166 | py, |
| 167 | "head", |
| 168 | url, |
| 169 | content, |
| 170 | data, |
| 171 | headers, |
| 172 | timeout, |
| 173 | force_http3, |
| 174 | Some(false), |
| 175 | ) |
| 176 | } |
| 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( |