nopasaran.http_2_utils.send_headers_frame

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

Send a HEADERS frame

Args:

conn: H2Connection instance sock: Socket to send data on frame_data: Frame configuration dictionary containing:

  • stream_id (optional): Stream ID

  • headers (optional): Headers to send

  • flags (optional): Dictionary containing:
    • END_STREAM (optional): Whether to end the stream

    • END_HEADERS (optional): Whether to end the headers

  • id: Test case ID