Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/requests/__pycache__/cookies.cpython-311.pyc
]jG $ d Z ddlZddlZddlZddlmZ ddlmZmZm Z m
Z
mZ ddlZn# e
$ r ddlZY nw xY w G d de Z G d d e Zd
Zd ZddZ G d
de Z G d dej e Zd Zd Zd ZddZd ZdS )z
requests.cookies
~~~~~~~~~~~~~~~~
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
N )to_native_string) cookieliburlparse
urlunparseMorselMutableMappingc e Zd ZdZd Zd Zd Zd Zd Zd Z d Z
dd
Zd Zd Z
d
Zed Zed Zed Zd S )MockRequesta Wraps a `requests.Request` to mimic a `urllib2.Request`.
The code in `cookielib.CookieJar` expects this interface in order to correctly
manage cookie policies, i.e., determine whether a cookie can be set, given the
domains of the request and the cookie.
The original request object is read-only. The client is responsible for collecting
the new headers via `get_new_headers()` and interpreting them appropriately. You
probably want `get_cookie_header`, defined below.
c h || _ i | _ t | j j j | _ d S N)_r_new_headersr urlschemetype)selfrequests p/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/requests/cookies.py__init__zMockRequest.__init__% s+ TW[))0 c | j S r
)r r s r get_typezMockRequest.get_type* s
yr c >