File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/tornado/__pycache__/http1connection.cpython-310.pyc
Back
o �h8� � @ sj d Z ddlZddlZddlZddlZddlmZmZmZ ddl m Z mZ ddlm Z ddlmZ ddlmZ ddlmZmZ dd lmZ dd lmZmZmZmZmZmZmZ e�d�ZG dd � d e�Z G dd� de!�Z"G dd� de!�Z#G dd� dej$�Z%G dd� dej&�Z'G dd� de!�Z(e�d�Z)e�d�Z*de+de,fdd�Z-de+de,fdd�Z.d ej/de0fd!d"�Z1dS )#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�Tuples | c @ s e Zd Zddd�ZdS )�_QuietException�returnNc C � d S �N� ��selfr r �J/usr/local/CyberCP/lib/python3.10/site-packages/tornado/http1connection.py�__init__- � z_QuietException.__init__�r N)�__name__� __module__�__qualname__r r r r r r , s r c @ sN e Zd ZdZdejddfdd�Zddd�Zd d dee de jddfd d�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 �loggerr Nc C s || _ d S r )r# )r r# r r r r 7 � z!_ExceptionLoggingContext.__init__c C r r r r r r r � __enter__: r z"_ExceptionLoggingContext.__enter__�typzOptional[Type[BaseException]]�value�tbc C s2 |d ur|d us J �| j jd|||fd� t�d S )N�Uncaught exception��exc_info)r# �errorr )r r&