NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::http::http2_frame_header结构体 参考

HTTP/2 帧头(RFC 7540 §4.1),9 字节 packed 布局 更多...

#include <http2_protocol.hpp>

Public 属性

uint8_t length_hi = 0
 Length[23:16]
uint8_t length_mid = 0
 Length[15:8]
uint8_t length_lo = 0
 Length[7:0]
uint8_t type = 0
 Frame type
uint8_t flags = 0
 Frame flags
uint8_t sid_r = 0
 R(1) | StreamID[30:24]
uint8_t sid_mid = 0
 StreamID[23:16]
uint8_t sid_lo1 = 0
 StreamID[15:8]
uint8_t sid_lo0 = 0
 StreamID[7:0]

详细描述

HTTP/2 帧头(RFC 7540 §4.1),9 字节 packed 布局

Byte 0-2: Length (24-bit big-endian) Byte 3: Type Byte 4: Flags Byte 5-8: R(1) + Stream Identifier (31-bit big-endian)

在文件 http2_protocol.hpp103 行定义.


该结构体的文档由以下文件生成: