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