nopasaran.tools.http_3_socket_base.HTTP3SocketBase¶
- class nopasaran.tools.http_3_socket_base.HTTP3SocketBase(host: str, port: int)¶
Bases:
objectBase class for HTTP/3 socket operations
- __init__(host: str, port: int)¶
Methods
__init__(host, port)close()Close the HTTP/3 connection and clean up resources
close_sync()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_sync()- async close()¶
Close the HTTP/3 connection and clean up resources
- 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