Class Protocols.HTTP2.Frame
- Description
HTTP/2 frame.
- Variable
frame_type
Variable flags
Protocols.HTTP2.Frame.frame_typeFrameType
Protocols.HTTP2.Frame.flagsFlag
- Variable payload
int|Stdio.Buffer|array(array(string(8bit))) Protocols.HTTP2.Frame.payload- Description
Data length for received packets, and payload for packets to send.
NB: To avoid frame reordering issues with HPack, this is the set of headers for
FRAME_headerandFRAME_push_promise.
- Variable promised_stream_id
int|voidProtocols.HTTP2.Frame.promised_stream_id- Description
Only used with
FRAME_push_promise, and overrides stream_id.
- Variable stream_id
int|voidProtocols.HTTP2.Frame.stream_id- Description
Stream identifier.
- Method create
Protocols.HTTP2.Frame Protocols.HTTP2.Frame(FrameTypeframe_type,Flagflags,int|Stdio.Buffer|array(array(string(8bit)))payload,int|voidstream_id,int|voidpromised_stream_id)