/opt/cloudlinux/venv/lib/python3.11/site-packages/requests/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/requests/__pycache__/cookies.cpython-311.pyc (27119B)
§
8Bóà¦jjã ó — d Z ddlZddlZddlZddlmZ ddlmZmZm Z m
Z
mZ ddlZn# e
$ r ddlZY nw xY w G d„ d¦ « Z G d„ d ¦ « Zd
„ Zd„ Zdd„Z G d
„ de¦ « Z G d„ de j e¦ « Zd„ Zd„ Zd„ Zdd„Zd„ 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)ÚMorselÚMutableMappingÚ cookielibÚurlparseÚ
urlunparsec ó˜ — 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 ÚurlÚschemeÚtype)ÚselfÚrequests úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/requests/cookies.pyÚ__init__zMockRequest.__init__# s+ € ؈ŒØˆÔݘTœWœ[Ñ)Ô)Ô0ˆŒ ˆ ˆ ó c ó — | j S r
)r ©r s r Úget_typezMockRequest.get_type( s
€ ØŒyÐr c ó> — t | j j ¦ « j S r
)r r r Únetlocr s r Úget_hostzMockRequest.get_host+ s € ݘœœÑ$Ô$Ô+Ð+r c ó* — | ¦ « S r
©r r s r Úget_origin_req_hostzMockRequest.get_origin_req_host. s € Ø�}Š}‰ŒÐr c ó( — | j j d¦ « s| j j S t | j j d d¬¦ « }t | j j ¦ « }t
|j ||j |j |j
|j g¦ « S )NÚHostzutf-8)Úencoding)r ÚheadersÚgetr r r r r ÚpathÚparamsÚqueryÚfragment)r ÚhostÚparseds r Úget_full_urlzMockRequest.get_full_url1 s‡ € ð ŒwŒ×"Ò" 6Ñ*Ô*ð Ø”7”;Ðå ¤¤°Ô 7À'ÐJÑJÔJˆÝ˜$œ'œ+Ñ&Ô&ˆåà”
ØØ”Ø”
ؔؔð
ñ
ô
ð
r c ó — dS ©NT© r s r Úis_unverifiablezMockRequest.is_unverifiableE s € ؈tr c ó0 — || j j v p|| j v S r
)r r$ r ©r Únames r Ú
has_headerzMockRequest.has_headerH s € Ø�t”w”Ð&ÐC¨$°$Ô2CÐ*CÐCr Nc ót — | j j || j ||¦ « ¦ « S r
)r r$ r% r )r r3 Údefaults r Ú
get_headerzMockRequest.get_headerK s/ € ØŒwŒ×"Ò" 4¨Ô):×)>Ò)>¸tÀWÑ)MÔ)MÑNÔNÐNr c ó — t d¦ « ‚)zMcookielib has no legitimate use for this method; add it back if you find one.z=Cookie headers should be added with add_unredirected_header())ÚNotImplementedError)r ÚkeyÚvals r Ú
add_headerzMockRequest.add_headerN s € å!ØKñ
ô
ð
r c ó — || j |<