nopasaran.tools.http_3_socket_client.HTTP3SocketClient¶
- class nopasaran.tools.http_3_socket_client.HTTP3SocketClient(host: str, port: int)¶
Bases:
HTTP3SocketBaseHTTP/3 client implementation with deterministic frame injection support
- __init__(host: str, port: int)¶
Methods
__init__(host, port)close()Close the HTTP/3 client connection
close_sync()run_communication([frame_spec])Run client-side HTTP/3 communication with optional deterministic frame injection.
run_sync(coro)Run a coroutine on the persistent event loop.
send_deterministic_frames([frame_type])Send deterministic frames based on the frame specification
send_deterministic_frames_sync([frame_type])send_frames(frames)Send frames and handle responses
set_deterministic_frames(frame_spec)Set the deterministic frames to inject during communication
start()Start the HTTP/3 client
start_sync()- async close()¶
Close the HTTP/3 client connection
- async run_communication(frame_spec: Dict[str, Any] | None = None)¶
Run client-side HTTP/3 communication with optional deterministic frame injection.
- Args:
frame_spec: Dictionary containing client_frames and server_frames to inject
- run_sync(coro)¶
Run a coroutine on the persistent event loop.
- async send_deterministic_frames(frame_type: str = 'client_frames')¶
Send deterministic frames based on the frame specification
- async send_frames(frames)¶
Send frames and handle responses
- set_deterministic_frames(frame_spec: Dict[str, Any])¶
Set the deterministic frames to inject during communication
- async start()¶
Start the HTTP/3 client