File: //opt/saltstack/salt/lib/python3.10/site-packages/aiohttp/__pycache__/client_proto.cpython-310.pyc
o
;jY1 � @ s� d dl Z d dlmZ d dlmZmZ ddlmZ ddlm Z m
Z
mZmZm
Z
ddlmZmZmZmZmZmZ ddlmZmZ dd lmZ dd
lmZmZmZ G dd� deeeeef �ZdS )
� N)�suppress)�Any�Callable� )�BaseProtocol)�ClientConnectionError�
ClientOSError�ClientPayloadError�ServerDisconnectedError�SocketTimeoutError)�
_EXC_SENTINEL�DEFAULT_CHUNK_SIZE�EMPTY_BODY_STATUS_CODES�BaseTimerContext�
set_exception�
set_result)�HttpResponseParser�RawResponseMessage)�HttpProcessingError)�
EMPTY_PAYLOAD� DataQueue�StreamReaderc s� e Zd ZdZdejddfdd�Zeddejd B fdd��Z ede
fd d
��Zede
fdd��ZdGd
d�Z
dGdd�ZdGdd�Zde
fdd�ZdedB ddf� fdd�ZdGdd�ZdG� fdd�ZdHde
ddf� fdd�
Zefded eddf� fd!d"�
Z dId#ed$ed%eg df dB ddfd&d'�Zdd(d(dded)d*d*d+d,�
d-edB d.e
d/e
d0e
d1edB d2ed3ed4ed5ed6eddfd7d8�ZdGd9d:�Z dGd;d<�Z!dGd=d>�Z"ededB fd?d@��Z#e#j$d1edB ddfdAd@��Z#dGdBdC�Z%dDe&ddfdEdF�Z'� Z(S )J�ResponseHandlerz8Helper class to adapt between Protocol and StreamReader.�loop�returnNc C sh t j| |d d� t�| |� d| _d | _d| _d | _d | _d | _d| _ d | _
d | _d| _d | _
d| _d S )N)r �parserF� � )r �__init__r �
_should_close�_payload�
_skip_payload�_payload_parser�_data_received_cbZ_timer�_tail�
_read_timeout�_read_timeout_handle�_timeout_ceil_threshold�_closed�_connection_lost_called)�selfr � r+ �H/opt/saltstack/salt/lib/python3.10/site-packages/aiohttp/client_proto.pyr s
zResponseHandler.__init__c C s"