TSG-10225 修复应答码为103时,应答头重复问题

This commit is contained in:
fengweihao
2022-04-15 15:26:53 +08:00
parent 8e6155ef31
commit 6a3499dbf3
3 changed files with 65 additions and 32 deletions

View File

@@ -14,27 +14,40 @@
#include <brotli/decode.h>
#include <http2_stream.h>
typedef struct RTLogInit2Data_ {
typedef struct RTLogInit2Data_
{
void *handle;
} RTLogInit2Data;
typedef struct Http2Plugin_{
typedef struct Http2Plugin_
{
struct event * event[TFE_THREAD_MAX];
struct tfe_h2_stream h2_stream[TFE_THREAD_MAX];
} Http2Plugin;
typedef enum {
NGHTTP2_METHOD_DELETE = 0,
NGHTTP2_METHOD_GET = 1,
NGHTTP2_METHOD_HEAD = 2,
NGHTTP2_METHOD_POST = 3,
NGHTTP2_METHOD_PUT = 4,
NGHTTP2_METHOD_CONNECT = 5,
NGHTTP2_METHOD_OPTIONS = 6,
NGHTTP2_METHOD_UNKNOWN,
}nghttp2_method;
enum http_request_method
{
HTTP_REQUEST_METHOD_DELETE = 0,
HTTP_REQUEST_METHOD_GET = 1,
HTTP_REQUEST_METHOD_HEAD = 2,
HTTP_REQUEST_METHOD_POST = 3,
HTTP_REQUEST_METHOD_PUT = 4,
HTTP_REQUEST_METHOD_CONNECT = 5,
HTTP_REQUEST_METHOD_OPTIONS = 6,
HTTP_REQUEST_METHOD_UNKNOWN,
};
struct value_string {
enum http_resp_code
{
HTTP_RESP_CODE_100 = 100,
HTTP_RESP_CODE_101 = 101,
HTTP_RESP_CODE_102 = 102,
HTTP_RESP_CODE_103 = 103,
HTTP_RESP_CODE_200 = 200,
};
struct value_string
{
unsigned int value;
const char *strptr;
};