MCPcopy Create free account
hub / github.com/apify/impit / head

Method head

impit-python/src/client.rs:155–176  ·  view source on GitHub ↗
(
        &self,
        py: Python<'_>,
        url: String,
        content: Option<Vec<u8>>,
        data: Option<RequestBody>,
        headers: Option<HashMap<String, String>>,
        timeout: Op

Source from the content-addressed store, hash-verified

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(

Callers 2

fetchMethod · 0.45
requestMethod · 0.45

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected