Commit 091f38a9 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Revise common header processing

Instead of emitting common headers on decoder side, encoder
now keeps track of removed common headers and encode it
as necessary.
parent 2d41c992
This diff is collapsed.
......@@ -47,6 +47,11 @@ typedef enum {
NGHTTP2_HD_SIDE_SERVER = 1
} nghttp2_hd_side;
typedef enum {
NGHTTP2_HD_ROLE_DEFLATE,
NGHTTP2_HD_ROLE_INFLATE
} nghttp2_hd_role;
typedef enum {
NGHTTP2_HD_FLAG_NONE = 0,
/* Indicates name was dynamically allocated and must be freed */
......@@ -92,6 +97,8 @@ typedef struct {
further invocation of inflate/deflate will fail with
NGHTTP2_ERR_HEADER_COMP. */
uint8_t bad;
/* Role of this context; deflate or infalte */
nghttp2_hd_role role;
} nghttp2_hd_context;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment