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

Method head

impit-python/src/async_client.rs:158–179  ·  view source on GitHub ↗
(
        &self,
        py: Python<'python>,
        url: String,
        content: Option<Vec<u8>>,
        data: Option<RequestBody>,
        headers: Option<HashMap<String, String>>,
        timeou

Source from the content-addressed store, hash-verified

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>(

Callers 1

requestMethod · 0.45

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected