Creates a new H2
object
Connects to a URL (only https is implemented currently)
Sends the HTTP/2 connection prefix
Sends an SETTINGS frame
Sends a SETTINGS frame with the ack flag
Send a PRIORITY frame
Send a WINDOW_UPDATE frame
Sends a PING frame
Sends a HEADER frame
Sends a DATA frame
Sends an arbitrary HTTP/2 frame.
This functions is mainly for testing HTTP/2 server implementation, for example sending an unsupported frame type to see how the server handles it.
Generally users are encouraged to use more specialized functions (e.g. send_headers
) as long as they satisfy the needs.
Reads a Frame, or times out. Returns nil on timeout
Returns a string representation of the frame type
Returns a numeric representation of the frame type
Returns a text representation of a frame
Returns the frame flags field
Returns the length of the frame's payload
Returns true if the END_STREAM
flag is set
Returns the length of the frame's stream_id
For types that support it (PING
, SETTINGS
) send a ack frame
Creates a new priority object (to be used with H2.send_headers)