Appendix A. HTTP/2 Frames
This appendix is a quick reference for the HTTP/2 framing layer. Each section includes the frame type number, the binary layout for the frame, a description of the frame, and a list of flags specific to that frame.
DATA
DATA frames contain arbitrary sequences of octets. This is a fancy way of saying these frames contain the requested/sent objects. Object data is split up across one or more frames depending on the maximum frame length. The padding length field and the padding itself are conditionally included to hide the size of the message for security purposes:
DATA Frame Fields
Name | Length | Description |
---|---|---|
Pad Length |
1 byte |
Indicates the length of the padding field. Will only be present if the |
Data |
Variable |
The content of the frame. |
Padding |
Variable |
Length set by the Pad Length field. All bytes are set to zero. |
DATA Frame Flags
Name | Bit | Description |
---|---|---|
END_STREAM |
0x1 |
Indicates this is the frame in the stream |
PADDED |
0x8 |
Indicates that the Pad Length and Padding fields are used |
HEADERS
HEADERS frames are used to start streams and send message headers ...
Get Learning HTTP/2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.