관리-도구
편집 파일: models.cpython-38.pyc
U .?�fZ� � @ s� 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 e6jDe6jEe6jFe6jGe6jHfZIdZJdZKdZLG dd� d�ZMG dd� d�ZNG dd � d eN�ZOG d!d"� d"eMeN�ZPG d#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 @ s0 e Zd Zedd� �Zedd� �Zedd� �ZdS )�RequestEncodingMixinc C sN g }t | j�}|j}|sd}|�|� |j}|rD|�d� |�|� d�|�S )zBuild the path URL to use.�/�?� )r �url�path�append�query�join)�selfr7 �pr8 r: � r>