Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Call NameLoad Call NameLoad Call NameLoad Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore ListLoad BinOpAdd NameLoad ListLoad TupleLoad Str Str BinOpAdd NameLoad ListLoad TupleLoad Str Str BinOpAdd ListLoad TupleLoad Str Str NameLoad BinOpAdd NameLoad ListLoad TupleLoad Str Str BinOpAdd NameLoad ListLoad TupleLoad Str Str BinOpAdd NameLoad ListLoad TupleLoad Str Str BinOpAdd NameLoad ListLoad TupleLoad Str Str BinOpAdd NameLoad ListLoad TupleLoad Str Str BinOpAdd NameLoad ListLoad TupleLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assert CompareEq NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assert NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str Str With Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A 
test_invalid_headers.py
~~~~~~~~~~~~~~~~~~~~~~~

This module contains tests that use invalid header blocks, and validates that
they fail appropriately.
 N/A pytest N/A h2.connection N/A h2.errors N/A h2.events N/A h2.exceptions N/A h2.utilities hypothesis given hypothesis.strategies binary lists tuples N/A HEADERS_STRATEGY N/A lists N/A tuples N/A binary N/A binary TestInvalidFrameSequences N/A object N/A N/A 
    Invalid header sequences cause ProtocolErrors to be thrown when received.
     N/A base_request_headers N/A N/A :authority example.com N/A :path / N/A :scheme https N/A :method GET N/A user-agent someua/0.0.1 N/A invalid_header_blocks N/A N/A base_request_headers N/A N/A Uppercase name N/A base_request_headers N/A N/A :late pseudo-header N/A N/A N/A :path duplicate-pseudo-header base_request_headers N/A base_request_headers N/A N/A connection close N/A base_request_headers N/A N/A proxy-connection close N/A base_request_headers N/A N/A keep-alive close N/A base_request_headers N/A N/A transfer-encoding gzip N/A base_request_headers N/A N/A upgrade super-protocol/1.1 N/A base_request_headers N/A N/A te chunked test_headers_event N/A N/A self frame_factory headers N/A N/A N/A 
        Test invalid headers are rejected with PROTOCOL_ERROR.
         N/A c N/A N/A N/A h2 connection H2Connection client_side False N/A N/A N/A c receive_data N/A N/A frame_factory preamble N/A N/A N/A c clear_outbound_data_buffer N/A f N/A N/A frame_factory build_headers_frame headers N/A data N/A N/A f serialize N/A N/A N/A pytest raises N/A N/A h2 exceptions ProtocolError N/A N/A N/A N/A c receive_data data N/A expected_frame N/A N/A frame_factory build_goaway_frame last_stream_id 0 error_code N/A N/A h2 errors PROTOCOL_ERROR N/A N/A N/A N/A c data_to_send N/A N/A expected_frame serialize N/A N/A N/A N/A pytest mark parametrize headers invalid_header_blocks test_transfer_encoding_trailers_is_valid N/A N/A self frame_factory N/A N/A N/A 
        Transfer-Encoding trailers is allowed by the filter.
         N/A headers N/A N/A self base_request_headers N/A N/A te trailers N/A c N/A N/A N/A h2 connection H2Connection client_side False N/A N/A N/A c receive_data N/A N/A frame_factory preamble N/A f N/A N/A frame_factory build_headers_frame headers N/A data N/A N/A f serialize N/A events N/A N/A c receive_data data N/A N/A N/A len events 1 N/A request_event N/A events N/A 0 N/A N/A N/A request_event headers headers N/A N/A TestFilter N/A object N/A N/A 
    Test the filter function directly.

    These tests exists to confirm the behaviour of the filter function in a
    wide range of scenarios. Many of these scenarios may not be legal for
    HTTP/2 and so may never hit the function, but it's worth validating that it
    behaves as expected anyway.
     test_range_of_acceptable_outputs N/A N/A self headers N/A N/A N/A 
        validate_headers either returns the data unchanged or throws a
        ProtocolError.
         N/A N/A N/A N/A headers N/A N/A N/A h2 utilities validate_headers headers N/A N/A N/A N/A N/A h2 exceptions ProtocolError N/A N/A True N/A N/A given HEADERS_STRATEGY test_invalid_pseudo_headers N/A N/A self N/A N/A N/A headers N/A N/A :custom value N/A N/A N/A pytest raises N/A N/A h2 exceptions ProtocolError N/A N/A N/A N/A N/A h2 utilities validate_headers headers N/A N/A