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

Method get

impit-python/src/async_client.rs:134–155  ·  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

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

Calls 1

requestMethod · 0.45