Hacked By AnonymousFox
�
�܋f�� � �R � d Z ddlZddlZddlmZ ddlmZmZm Z m
Z
mZ ddlm
Z
ddlmZ ddlmZ dd lmZmZ dd
lmZ ddlmZmZmZmZmZmZmZ ddlmZ dd
lm!Z!m"Z"m#Z# ddl$m%Z%m&Z&m'Z' ddl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z. ddl(mZ/ ddl(m0Z0 ddl(mZ1 ddl(m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZC e6jD e6jE e6jF e6jG e6jH fZIdZJdZKdZL G d� d� � ZM G d� d� � ZN G d� d eN� � ZO G d!� d"eMeN� � ZP G d#� d$� � ZQdS )%z`
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
� N)�UnsupportedOperation)�DecodeError�LocationParseError�
ProtocolError�ReadTimeoutError�SSLError)�RequestField)�encode_multipart_formdata)� parse_url� )�to_native_string�unicode_is_ascii)�
HTTPBasicAuth)�Callable�JSONDecodeError�Mapping�
basestring�builtin_str�chardet� cookielib)�json)� urlencode�urlsplit�
urlunparse)�_copy_cookie_jar�cookiejar_from_dict�get_cookie_header)�ChunkedEncodingError�ConnectionError�ContentDecodingError� HTTPError�InvalidJSONError�
InvalidURL)r )�
MissingSchema)r )�StreamConsumedError)�
default_hooks)�codes)�CaseInsensitiveDict)
�check_header_validity�get_auth_from_url�guess_filename�guess_json_utf�iter_slices�parse_header_links�requote_uri�stream_decode_response_unicode� super_len�to_key_val_list� i ( i c �P � e Zd Zed� � � Zed� � � Zed� � � ZdS )�RequestEncodingMixinc � � g }t | j � � }|j }|sd}|� |� � |j }|r*|� d� � |� |� � d� |� � S )zBuild the path URL to use.�/�?� )r �url�path�append�query�join)�selfr: �pr; r= s �F/opt/cloudlinux/venv/lib64/python3.11/site-packages/requests/models.py�path_urlzRequestEncodingMixin.path_urlU s~ � � ���T�X�����v��� ��D��
�
�4�������� ��J�J�s�O�O�O��J�J�u�����w�w�s�|�|�� c �
� t | t t f� � r| S t | d� � r| S t | d� � r�g }t | � � D ]�\ }}t |t
� � st |d� � s|g}|D ]o}|�k|� t |t � � r|� d� � n|t |t � � r|� d� � n|f� � �p��t |d�� � S | S )z�Encode parameters in a piece of data.
Will successfully encode parameters when passed as a dict or a list of
2-tuples. Order is retained if data is a list of 2-tuples but arbitrary
if parameters are supplied as a dict.
�read�__iter__N�utf-8T)�doseq) �
isinstance�str�bytes�hasattrr2 r r<