(py: Python<'_>, cookie_jar: Py<PyAny>)
| 177 | |
| 178 | impl 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 |
nothing calls this directly
no outgoing calls
no test coverage detected