nopasaran.tools.http_2_socket_client.HTTP2SocketClient

class nopasaran.tools.http_2_socket_client.HTTP2SocketClient(host: str, port: int)

Bases: HTTP2SocketBase

__init__(host: str, port: int)

Methods

__init__(host, port)

close()

Close the HTTP/2 connection and clean up resources

receive_test_frames(test_frames)

Wait for test frames with adaptive timeout

send_frames(frames)

Send frames with GOAWAY checking after each frame

start([tls_enabled, ...])

Start the HTTP/2 client

wait_for_preface()

Wait for peer SETTINGS (preface).

wait_for_preface_ack()

Wait for peer SETTINGS ACK.

close()

Close the HTTP/2 connection and clean up resources

receive_test_frames(test_frames) str

Wait for test frames with adaptive timeout

send_frames(frames)

Send frames with GOAWAY checking after each frame

start(tls_enabled=False, connection_settings_client={}, cloudflare_origin=False)

Start the HTTP/2 client

wait_for_preface()

Wait for peer SETTINGS (preface). Returns (event, msg, frames).

wait_for_preface_ack()

Wait for peer SETTINGS ACK. Returns (event, msg).