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_header
andFRAME_push_promise
.
- Variable promised_stream_id
int
|void
Protocols.HTTP2.Frame.promised_stream_id- Description
Only used with
FRAME_push_promise
, and overrides stream_id.
- Variable stream_id
int
|void
Protocols.HTTP2.Frame.stream_id- Description
Stream identifier.
- Method create
Protocols.HTTP2.Frame Protocols.HTTP2.Frame(
FrameType
frame_type
,Flag
flags
,int
|Stdio.Buffer
|array
(array
(string(8bit)
))payload
,int
|void
stream_id
,int
|void
promised_stream_id
)