summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-05-19 21:18:25 +0800
committerZhidao HONG <z.hong@f5.com>2022-05-19 21:18:25 +0800
commit4f16479482f4902aecefdbcd16f3d6e3bf6b67a4 (patch)
treee90ce2482c204cad5f2f8d026775b77f7a179ad4 /src/nxt_http.h
parent0d48fe73c4450901622373e35f6ff3a944ec13d6 (diff)
downloadunit-4f16479482f4902aecefdbcd16f3d6e3bf6b67a4.tar.gz
unit-4f16479482f4902aecefdbcd16f3d6e3bf6b67a4.tar.bz2
HTTP: generalized uri encoding.
No functional changes.
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index d299fdd4..37c27325 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -207,6 +207,13 @@ typedef struct {
} nxt_http_name_value_t;
+typedef enum {
+ NXT_HTTP_URI_ENCODING_NONE = 0,
+ NXT_HTTP_URI_ENCODING,
+ NXT_HTTP_URI_ENCODING_PLUS
+} nxt_http_uri_encoding_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;
@@ -324,6 +331,9 @@ nxt_int_t nxt_http_request_content_length(void *ctx, nxt_http_field_t *field,
nxt_array_t *nxt_http_arguments_parse(nxt_http_request_t *r);
nxt_array_t *nxt_http_cookies_parse(nxt_http_request_t *r);
+int64_t nxt_http_field_hash(nxt_mp_t *mp, nxt_str_t *name,
+ nxt_bool_t case_sensitive, uint8_t encoding);
+
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,