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

Method new

impit-python/src/cookies.rs:179–187  ·  view source on GitHub ↗
(py: Python<'_>, cookie_jar: Py<PyAny>)

Source from the content-addressed store, hash-verified

177
178impl PythonCookieJar {
179 pub fn new(py: Python<'_>, cookie_jar: Py<PyAny>) -> Self {
180 let httpmodule = PyModule::import(py, "http.cookiejar").unwrap();
181 let cookie_constructor = httpmodule.getattr("Cookie").unwrap().into();
182
183 PythonCookieJar {
184 cookie_jar,
185 cookie_constructor,
186 }
187 }
188
189 pub fn from_httpx_cookies(py: Python<'_>, cookies: Py<PyAny>) -> PyResult<Self> {
190 cookies

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected