File: //lib64/python3.6/site-packages/tornado/__pycache__/http1connection.cpython-36.pyc
3
��fO� � @ s d Z ddlZddlZddlZddlZddlmZmZmZ ddl m
Z
mZ ddlm
Z
ddlmZ ddlmZ ddlmZmZ dd lmZ dd
lmZmZmZmZmZmZmZ G dd� de�ZG d
d� de�Z G dd� de�Z!G dd� dej"�Z#G dd� dej$�Z%G dd� de�Z&dS )zFClient and server implementations of HTTP/1.x.
.. versionadded:: 4.0
� N)�Future�future_add_done_callback�"future_set_result_unless_cancelled)�
native_str�utf8)�gen)�httputil)�iostream)�gen_log�app_log)�GzipDecompressor)�cast�Optional�Type� Awaitable�Callable�Union�Tuplec @ s e Zd Zdd�dd�ZdS )�_QuietExceptionN)�returnc C s d S )N� )�selfr r �'/usr/lib64/python3.6/http1connection.py�__init__+ s z_QuietException.__init__)�__name__�
__module__�__qualname__r r r r r r * s r c @ sJ e Zd ZdZejdd�dd�Zdd�dd�Zd ee e
jdd
�dd�ZdS )
�_ExceptionLoggingContextz�Used with the ``with`` statement when calling delegate methods to
log any exceptions with the given logger. Any exceptions caught are
converted to _QuietException
N)�loggerr c C s
|| _ d S )N)r )r r r r r r 5 s z!_ExceptionLoggingContext.__init__)r c C s d S )Nr )r r r r � __enter__8 s z"_ExceptionLoggingContext.__enter__zOptional[Type[BaseException]])�typ�value�tbr c C s2 |d k r.|d k st �| jjd|||fd� t�d S )NzUncaught exception)�exc_info)�AssertionErrorr �errorr )r r r! r"