File: //usr/lib/python3/dist-packages/twisted/web/test/__pycache__/test_http2.cpython-310.pyc
o
�bF� � @ s> d Z ddlZddlmZmZ ddlmZmZmZm Z ddl
mZ ddlm
Z
mZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZmZmZmZmZmZm Z dZ!z$ddl"Z"ddl#Z"ddl$Z"ddl%Z%ddl&Z&dd
l'm(Z(m)Z) ddl*m+Z+ W n e,y� dZ!Y nw G dd� d�Z-G dd� d�Z.d1dd�Z/d1dd�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 )2z
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 � t � | _d S �N�r �encoder��self� r! �=/usr/lib/python3/dist-packages/twisted/web/test/test_http2.py�__init__8 � zFrameFactory.__init__c C r r r r r! r! r"