Current File : //proc/self/root/lib/python3/dist-packages/twisted/web/test/__pycache__/test_http2.cpython-312.pyc |
�
Ϫ�f�� � �@ � d Z ddlZddlmZmZ ddlmZmZmZm Z ddl
mZ ddlm
Z
mZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZmZmZmZmZmZm Z dZ! ddl"Z"ddl#Z"ddl$Z"ddl%Z%ddl&Z&dd
l'm(Z(m)Z) ddl*m+Z+ G d� d� Z- G d� d� Z.d-d�Z/d-d�Z0d� Z1 G d� dejd � Z3 e e3� Z4 G d� dejd � Z5 e e5� Z6 G d� de5� Z7 e e7� Z8 G d� dejd � Z9 e e9� Z: G d� d � Z; e e;� Z< G d!� d"� Z= G d#� d$ej| e=� Z? G d%� d&ej| e=� Z@ G d'� d(ej| e=� ZA G d)� d*ej| e=� ZB G d+� d,ej| e=� ZCy# e,$ r dZ!Y ��w xY w).z
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 �f � e Zd ZdZd� Zd� Zd� Zg dfd�Zdd�Zdd �Z d
� Z
dd�Zdd�Zdd
�Z
g fd�Zy)�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 �"