Class Protocols.HTTP2.Frame
- Description
HTTP/2 frame.
- Variable
frame_type
Variable flags
FrameType
Protocols.HTTP2.Frame.frame_type
Flag
Protocols.HTTP2.Frame.flags
- 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
and FRAME_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.
- 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
)