| 129 | |
| 130 | #[pyo3(signature = (url, content=None, data=None, headers=None, timeout=Some(Right(USE_CLIENT_DEFAULT_SENTINEL)), force_http3=false))] |
| 131 | pub fn get( |
| 132 | &self, |
| 133 | py: Python<'_>, |
| 134 | url: String, |
| 135 | content: Option<Vec<u8>>, |
| 136 | data: Option<RequestBody>, |
| 137 | headers: Option<HashMap<String, String>>, |
| 138 | timeout: Option<Either<f64, &str>>, |
| 139 | force_http3: Option<bool>, |
| 140 | ) -> Result<response::ImpitPyResponse, ImpitPyError> { |
| 141 | self.request( |
| 142 | py, |
| 143 | "get", |
| 144 | url, |
| 145 | content, |
| 146 | data, |
| 147 | headers, |
| 148 | timeout, |
| 149 | force_http3, |
| 150 | Some(false), |
| 151 | ) |
| 152 | } |
| 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( |