diff options
author | Igor Sysoev <igor@sysoev.ru> | 2019-08-06 15:29:40 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2019-08-06 15:29:40 +0300 |
commit | c7210eaa5a15083715cac574cce055b94860e70e (patch) | |
tree | e2e2acbbc6c138f0cec3f4dd5e6d2a9152ad35ac /src | |
parent | 17bb22a4e46b390f42af665d1e92d2e1a09c9b56 (diff) | |
download | unit-c7210eaa5a15083715cac574cce055b94860e70e.tar.gz unit-c7210eaa5a15083715cac574cce055b94860e70e.tar.bz2 |
nxt_h1proto_t definition was moved to h1proto implementation.
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_h1proto.c | 20 | ||||
-rw-r--r-- | src/nxt_http.h | 20 |
2 files changed, 21 insertions, 19 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c index 40cd370e..b0bd39e1 100644 --- a/src/nxt_h1proto.c +++ b/src/nxt_h1proto.c @@ -8,6 +8,26 @@ #include <nxt_http.h> +struct nxt_h1proto_s { + nxt_http_request_parse_t parser; + + uint8_t nbuffers; + uint8_t keepalive; /* 1 bit */ + uint8_t chunked; /* 1 bit */ + nxt_http_te_t transfer_encoding:8; /* 2 bits */ + + uint32_t header_size; + + nxt_http_request_t *request; + nxt_buf_t *buffers; + /* + * All fields before the conn field will + * be zeroed in a keep-alive connection. + */ + nxt_conn_t *conn; +}; + + /* * nxt_http_conn_ and nxt_h1p_conn_ prefixes are used for connection handlers. * nxt_h1p_idle_ prefix is used for idle connection handlers. diff --git a/src/nxt_http.h b/src/nxt_http.h index d9916a31..c1a230ec 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -59,25 +59,7 @@ typedef struct { } nxt_http_request_state_t; -typedef struct { - nxt_http_request_parse_t parser; - - uint8_t nbuffers; - uint8_t keepalive; /* 1 bit */ - uint8_t chunked; /* 1 bit */ - nxt_http_te_t transfer_encoding:8; /* 2 bits */ - - uint32_t header_size; - - nxt_http_request_t *request; - nxt_buf_t *buffers; - /* - * All fields before the conn field will - * be zeroed in a keep-alive connection. - */ - nxt_conn_t *conn; -} nxt_h1proto_t; - +typedef struct nxt_h1proto_s nxt_h1proto_t; typedef union { void *any; |