整理 http/http2 公共的 header 字段,存储到 tfe_http.cpp 文件中
This commit is contained in:
@@ -49,6 +49,11 @@ val_to_str(unsigned int val, const struct value_string *vs);
|
||||
int
|
||||
str_to_val(const char *val, const struct value_string *vs);
|
||||
|
||||
const char*
|
||||
http2_header_val_to_str(unsigned int val, const char * map[], unsigned int map_size);
|
||||
int
|
||||
http2_header_str_to_val(const char *str, const char * map[], unsigned int map_size);
|
||||
|
||||
#define BV(x) (1 << x)
|
||||
#define HTTP2_CONTENT_ENCODING_NONE 0
|
||||
#define HTTP2_CONTENT_ENCODING_GZIP BV(1)
|
||||
|
||||
Reference in New Issue
Block a user