Current File : //proc/self/root/lib/python3/dist-packages/botocore/__pycache__/awsrequest.cpython-312.pyc |
�
P��etZ � � � d dl Z d dlZd dlmZ d dlZd dlmZmZ d dl m
Z
mZ d dlZ
d dlmZmZmZmZmZmZmZ d dlmZ ej0 e� Z G d� de� Z G d � d
� Z G d� dee� Z G d
� dee� Z G d� de
� Z G d� de� Z d"d�Z!d� Z"d� Z# G d� d� Z$ G d� d� Z% G d� d� Z& G d� d� Z' G d� d� Z( G d � d!e� Z)y)#� N)�Mapping)�HTTPConnection�VerifiedHTTPSConnection)�HTTPConnectionPool�HTTPSConnectionPool)�HTTPHeaders�HTTPResponse�MutableMapping� urlencode�urlparse�urlsplit�
urlunsplit)�UnseekableStreamErrorc � � e Zd Zd� Zd� Zy)�AWSHTTPResponsec �b � |j d� | _ t j | g|��i |�� y )N�status_tuple)�pop�
_status_tupler �__init__��self�args�kwargss �5/usr/lib/python3/dist-packages/botocore/awsrequest.pyr zAWSHTTPResponse.__init__( s+ � �#�Z�Z��7������d�4�T�4�V�4� c �n � | j �| j }d | _ |S t j | � S �N)r r �_read_status)r r s r r zAWSHTTPResponse._read_status, s8 � ����)��-�-�L�!%�D�����,�,�T�2�2r N)�__name__�
__module__�__qualname__r r � r r r r % s � �5�3r r c �h � � e Zd ZdZ� fd�Z� fd�Zd� fd� Zd� Zd
d�Zd� Z d� Z
d � Z� fd
�Zd� Z
� xZS )�
AWSConnectiona� Mixin for HTTPConnection that supports Expect 100-continue.
This when mixed with a subclass of httplib.HTTPConnection (though
technically we subclass from urllib3, which subclasses
httplib.HTTPConnection) and we only override this class to support Expect
100-continue, which we need for S3. As far as I can tell, this is
general purpose enough to not be specific to S3, but I'm being
tentative and keeping it in botocore because I've only tested
this against AWS services.
c �p �� t �| � |i |�� | j | _ d| _ d| _ d| _ y �NF)�superr �response_class�_original_response_cls�_response_received�_expect_header_set�_send_called)r r r � __class__s �r r zAWSConnection.__init__B s= �� �
���$�)�&�)�&*�&9�&9��#� #(���"'���!��r c �n �� t �| � � d| _ d| _ d| _ | j
| _ y r'