nopasaran.tools.http_2_overwrite

Functions

FrameBuffer__init__(self[, server, ...])

Frame__init__(self, stream_id[, flags])

H2Configuration__init__(self[, client_side, ...])

H2Connection__init__modified(self[, config])

Modified init that uses our custom state machine

new__next__(self)

Modified __next__ to convert CONTINUATION frames to independent HEADERS frames

new_add_data(self, data)

Add more data to the frame buffer.

new_begin_new_stream(self, stream_id, ...)

Initiate a new stream.

new_initiate_connection(self)

Provides any data that needs to be sent at the start of the connection.

new_push_promise_parse_body(self, data)

new_receive_data_frame(self, frame)

Modified _receive_data_frame to handle DATA frames in any state

new_receive_naked_continuation(self, frame)

A CONTINUATION frame has been received.

new_receive_priority_frame(self, frame)

Receive a PRIORITY frame on the connection.

new_receive_push_promise_frame(self, frame)

Receive a push-promise frame on the connection.

new_receive_rst_stream_frame(self, frame)

Receive a RST_STREAM frame on the connection.

new_receive_window_update_frame(self, frame)

Receive a WINDOW_UPDATE frame on the connection.

new_rststream_parse_body(self, data)

new_send_data(self, stream_id, data[, ...])

Modified send_data to force sending DATA frames even in IDLE state

new_settings_parse_body(self, data)

new_update_header_buffer(self, f)

Simplified header buffer that just passes frames through

new_validate_setting(setting, value)

Confirms that a specific setting has a well-formed value.

new_window_update_parse_body(self, data)

receive_headers(self, headers, end_stream, ...)

Receive a set of headers (or trailers).

redefine_methods(cls, methods_dict)

send_headers(self, headers, encoder[, ...])

Returns a list of HEADERS/CONTINUATION frames to emit as either headers or trailers.

Classes

H2ConnectionStateMachineOverride()

Override the state machine to allow DATA frames in IDLE state