Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/web/test/__pycache__/test_http2.cpython-39.pyc
Ðазад
a k�h.� � @ s@ d Z ddlZddlmZmZ ddlmZmZmZm Z ddl mZ ddlm Z mZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZmZmZmZmZmZm Z dZ!zHddl"Z"ddl#Z"ddl$Z"ddl%Z%ddl&Z&dd l'm(Z(m)Z) ddl*m+Z+ W n e,�y dZ!Y n0 G dd� d�Z-G dd� d�Z.d1dd�Z/d2dd�Z0dd� Z1G dd� dej2�Z3e e3�Z4G dd� dej2�Z5e e5�Z6G dd � d e5�Z7e e7�Z8G d!d"� d"ej2�Z9e e9�Z:G d#d$� d$�Z;e e;�Z<G d%d&� d&�Z=G d'd(� d(ej>e=�Z?G d)d*� d*ej>e=�Z@G d+d,� d,ej>e=�ZAG d-d.� d.ej>e=�ZBG d/d0� d0ej>e=�ZCdS )3z Test HTTP/2 support. � N)�directlyProvides� providedBy)�defer�error�reactor�task)�IPv4Address)�MemoryReactorClock�StringTransport)�failure)� iterbytes)� DummyProducer)�unittest)�http)�DelayedHTTPHandler�DelayedHTTPHandlerProxy�DummyHTTPHandler�DummyHTTPHandlerProxy�DummyPullProducerHandlerProxy�._IDeprecatedHTTPChannelToRequestInterfaceProxy�_makeRequestProxyFactory)�Decoder�Encoder)�H2ConnectionzHTTP/2 support not enabledc @ s| e Zd ZdZdd� Zdd� Zdd� Zg dfd d �Zddd �Zddd�Z dd� Z ddd�Zd dd�Zd!dd�Z g fdd�ZdS )"�FrameFactoryz� A class containing lots of helper methods and state to build frames. This allows test cases to easily build correct HTTP/2 frames to feed to hyper-h2. c C s t � | _d S �N�r �encoder��self� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/web/test/test_http2.py�__init__8 s zFrameFactory.__init__c C s t � | _d S r r r r r r! �refreshEncoder; s zFrameFactory.refreshEncoderc C s dS )Ns PRI * HTTP/2.0 SM r r r r r! �clientConnectionPreface>