Server IP : 15.235.198.142 / Your IP : 216.73.216.76 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/requests/__pycache__/ |
Upload File : |
� �kd�H � � � d Z ddlZddlZddlZddlmZ ddlmZmZm Z m Z mZ ddlZ 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� Zy# e $ r ddlZY �[w xY w)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� � Zy )�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 �| � || _ i | _ t | j j � j | _ y �N)�_r�_new_headersr �url�scheme�type)�self�requests �2/usr/lib/python3/dist-packages/requests/cookies.py�__init__zMockRequest.__init__# s+ � ��������T�W�W�[�[�)�0�0�� � c � � | j S r )r �r s r �get_typezMockRequest.get_type( s � ��y�y�r c �T � t | j j � j S r )r r r �netlocr s r �get_hostzMockRequest.get_host+ s � �������$�+�+�+r c �"