Repository URL to install this package:
|
Version:
0.1.31 ▾
|
odigos-demo-inventory
/
opt
/
odigos-demo-inventory
/
site-packages
/
requests
/
__pycache__
/
cookies.cpython-311.pyc
|
|---|
§
iµµhH ã ó d Z ddlZddlZddlZddlmZ ddlmZmZm Z m
Z
mZ ddlZn# e
$ r ddlZY nw xY w G d d¦ « Z G d d ¦ « Zd
Zd ZddZ G d
de¦ « Z G d de j e¦ « Zd Zd Zd ZddZd ZdS )z²
requests.cookies
~~~~~~~~~~~~~~~~
Compatibility code to be able to use `http.cookiejar.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 `http.cookiejar.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 ú;/usr/local/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
ØyÐr c ó>