diff options
author | Igor Sysoev <igor@sysoev.ru> | 2019-05-30 15:33:51 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2019-05-30 15:33:51 +0300 |
commit | 0ba7cfce7572070892bf54ed69b82a822e3ee0d4 (patch) | |
tree | e285a25d935a95118d051a29e87650d48a66a334 /src/nxt_http_parse.h | |
parent | 3aaebe4169f80707e495f1111b7ab9c2dcb79b6d (diff) | |
download | unit-0ba7cfce7572070892bf54ed69b82a822e3ee0d4.tar.gz unit-0ba7cfce7572070892bf54ed69b82a822e3ee0d4.tar.bz2 |
Added routing based on header fields.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_http_parse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_http_parse.h b/src/nxt_http_parse.h index 0326d45c..6c629936 100644 --- a/src/nxt_http_parse.h +++ b/src/nxt_http_parse.h @@ -93,6 +93,11 @@ struct nxt_http_field_s { }; +#define NXT_HTTP_FIELD_HASH_INIT 159406U +#define nxt_http_field_hash_char(h, c) (((h) << 4) + (h) + (c)) +#define nxt_http_field_hash_end(h) (((h) >> 16) ^ (h)) + + nxt_int_t nxt_http_parse_request_init(nxt_http_request_parse_t *rp, nxt_mp_t *mp); nxt_int_t nxt_http_parse_request(nxt_http_request_parse_t *rp, |