File: //usr/lib/python3/dist-packages/pip/_vendor/requests/__pycache__/models.cpython-310.pyc
o
@%Ne,� � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddlmZm
Z
mZmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZmZmZ dd
lmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ ddlm%Z& ddl'm(Z(m)Z) ddl*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4 ddl5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAm%Z% ddl5mBZC ddlDmEZE eEjFeEjGeEjHeEjIeEjJfZKdZLdZMdZNG dd� deO�ZPG dd� deO�ZQG dd� deQ�ZRG dd� dePeQ�ZSG dd � d eO�ZTdS )!z`
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
� N)�RequestField)�encode_multipart_formdata)� parse_url)�DecodeError�ReadTimeoutError�
ProtocolError�LocationParseError)�UnsupportedOperation� )�
default_hooks)�CaseInsensitiveDict)�
HTTPBasicAuth)�cookiejar_from_dict�get_cookie_header�_copy_cookie_jar)� HTTPError�
MissingSchema�
InvalidURL�ChunkedEncodingError�ContentDecodingError�ConnectionError�StreamConsumedError�InvalidJSONError)�JSONDecodeError)�to_native_string�unicode_is_ascii)
�guess_filename�get_auth_from_url�requote_uri�stream_decode_response_unicode�to_key_val_list�parse_header_links�iter_slices�guess_json_utf� super_len�check_header_validity)
�Callable�Mapping� cookielib�
urlunparse�urlsplit� urlencode�str�bytes�is_py2�chardet�builtin_str�
basestringr )�json)�codes� i ( i c @ s0 e Zd Zedd� �Zedd� �Zedd� �ZdS )�RequestEncodingMixinc C sN g }t | j�}|j}|sd}|�|� |j}|r"|�d� |�|� d�|�S )zBuild the path URL to use.�/�?� )r* �url�path�append�query�join)�selfr9 �pr: r<