관리-도구
편집 파일: models.cpython-36.pyc
3 �Pf� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z mZmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZmZmZ dd lmZmZm Z m!Z!m"Z"m#Z#m$Z$ ddl%m&Z&m'Z' ddl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2 ddl3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z= ddl3m>Z? ddl@mAZA eAjBeAjCeAjDeAjEeAjFfZGdZHd!ZIdZJG dd� deK�ZLG dd� deK�ZMG dd� deM�ZNG dd� deLeM�ZOG dd � d eK�ZPdS )"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)�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) � cookielib� urlunparse�urlsplit� urlencode�str�bytes�is_py2�chardet�builtin_str� basestring)�json)�codes� � i i c @ s0 e Zd Zedd� �Zedd� �Zedd� �ZdS )�RequestEncodingMixinc C sN g }t | j�}|j}|sd}|j|� |j}|rD|jd� |j|� dj|�S )zBuild the path URL to use.�/�?� )r&