diff options
author | Zhidao HONG <z.hong@f5.com> | 2022-05-18 21:18:40 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2022-05-18 21:18:40 +0800 |
commit | 6271479610c95d40daf9ed6ec2c7dead67c74f00 (patch) | |
tree | 858290b48bf48393beb8c0c041dbed40d71d07aa /src/nxt_http.h | |
parent | 3e06ae3b34fa1fb1aff15186ddd4588f4f5aa3b3 (diff) | |
download | unit-6271479610c95d40daf9ed6ec2c7dead67c74f00.tar.gz unit-6271479610c95d40daf9ed6ec2c7dead67c74f00.tar.bz2 |
HTTP: generalized argument and cookie parsing.
No functional changes.
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r-- | src/nxt_http.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h index 36bc089d..6b19d7df 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -198,6 +198,15 @@ struct nxt_http_request_s { }; +typedef struct { + uint16_t hash; + uint16_t name_length; + uint32_t value_length; + u_char *name; + u_char *value; +} nxt_http_name_value_t; + + typedef struct nxt_http_route_s nxt_http_route_t; typedef struct nxt_http_route_rule_s nxt_http_route_rule_t; typedef struct nxt_http_route_addr_rule_s nxt_http_route_addr_rule_t; @@ -311,6 +320,9 @@ nxt_int_t nxt_http_request_field(void *ctx, nxt_http_field_t *field, nxt_int_t nxt_http_request_content_length(void *ctx, nxt_http_field_t *field, uintptr_t data); +nxt_array_t *nxt_http_arguments_parse(nxt_http_request_t *r); +nxt_array_t *nxt_http_cookies_parse(nxt_http_request_t *r); + nxt_http_routes_t *nxt_http_routes_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, nxt_conf_value_t *routes_conf); nxt_http_action_t *nxt_http_action_create(nxt_task_t *task, |