summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_parse.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-01-15 20:50:14 +0300
committerValentin Bartenev <vbart@nginx.com>2018-01-15 20:50:14 +0300
commita073616fc35b76fce4c4cc1b3ad30837a22d5499 (patch)
tree78b91d5c19a2300ee4fd0a8b1f1cf40649f7071d /src/nxt_http_parse.h
parent3fb140d6d2f8bf0344e7c311923178db808cb437 (diff)
downloadunit-a073616fc35b76fce4c4cc1b3ad30837a22d5499.tar.gz
unit-a073616fc35b76fce4c4cc1b3ad30837a22d5499.tar.bz2
Improved HTTP version representation.
Diffstat (limited to '')
-rw-r--r--src/nxt_http_parse.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nxt_http_parse.h b/src/nxt_http_parse.h
index 0a0ca340..51c6809a 100644
--- a/src/nxt_http_parse.h
+++ b/src/nxt_http_parse.h
@@ -22,6 +22,13 @@ typedef struct nxt_http_fields_hash_s nxt_http_fields_hash_t;
typedef union {
u_char str[8];
uint64_t ui64;
+
+ struct {
+ u_char prefix[5];
+ u_char major;
+ u_char point;
+ u_char minor;
+ } s;
} nxt_http_ver_t;