nopasaran.http_2_utils.send_frame

nopasaran.http_2_utils.send_frame(conn: H2Connection, sock: socket, frame_data: Dict, is_server: bool = False, cloudflare_origin: bool = False)

Send a single H2 frame Args:

conn: H2Connection instance sock: Socket to send data on frame_data: Frame configuration from test case is_server: Whether the frame is being sent from the server cloudflare_origin: Whether the frame is being sent from the cloudflare origin