nopasaran.http_2_utils¶
Functions
|
Create and configure a socket |
|
Create SSL context with the specified protocol |
|
Convert headers dictionary to h2 compatible format Args: headers_dict: Dictionary containing pseudo_headers and regular_headers Returns: List of (name, value) tuples in correct order |
Generate temporary self-signed certificates for TLS testing |
|
|
Load embedded certificates by writing to temporary files |
|
Send a CONTINUATION frame |
|
Send a DATA frame |
|
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 |
|
Send a GOAWAY frame |
|
Send a HEADERS frame |
|
Send a PING frame |
|
|
|
Send a PUSH_PROMISE frame |
|
Send a RST_STREAM frame |
|
Send a SETTINGS frame with optional stream ID |
|
Send a TRAILERS frame |
|
Send an UNKNOWN frame |
|
Send a WINDOW_UPDATE frame |
Classes
SSL configuration constants |