mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 15:47:10 +00:00
MINOR: h2: add a frame header descriptor for incoming frames
This descriptor will be used by the frame parser, it's designed to ease manipulation of frame length, type, flags and sid.
This commit is contained in:
parent
96060bad26
commit
c64051404d
@ -117,6 +117,14 @@ struct h2s {
|
||||
enum h2_ss st;
|
||||
};
|
||||
|
||||
/* descriptor for an h2 frame header */
|
||||
struct h2_fh {
|
||||
uint32_t len; /* length, host order, 24 bits */
|
||||
uint32_t sid; /* stream id, host order, 31 bits */
|
||||
uint8_t ft; /* frame type */
|
||||
uint8_t ff; /* frame flags */
|
||||
};
|
||||
|
||||
/* a few settings from the global section */
|
||||
static int h2_settings_header_table_size = 4096; /* initial value */
|
||||
static int h2_settings_initial_window_size = 65535; /* initial value */
|
||||
|
Loading…
Reference in New Issue
Block a user