| Server IP : 185.143.233.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/requests/__pycache__/ |
Upload File : |
�
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 �a/builddir/build/BUILD/cloudlinux-venv-1.0.8/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 �>