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

Method get

impit-python/src/client.rs:131–152  ·  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

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(

Calls 1

requestMethod · 0.45