summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorOisin Canty <o.canty@f5.com>2021-05-06 14:22:21 +0000
committerOisin Canty <o.canty@f5.com>2021-05-06 14:22:21 +0000
commitb9d5eb285a2fca8b9b60d948acc679a5e16b3f94 (patch)
tree32dab8ccdef597e4daf50b3cffa74a3a2237607b /src/nxt_http.h
parente0a061955bba69aaf28022d405362c8a5e444ff6 (diff)
downloadunit-b9d5eb285a2fca8b9b60d948acc679a5e16b3f94.tar.gz
unit-b9d5eb285a2fca8b9b60d948acc679a5e16b3f94.tar.bz2
Static: implemented MIME filtering
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index da1124a8..f82d837e 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -197,7 +197,8 @@ struct nxt_http_request_s {
};
-typedef struct nxt_http_route_s nxt_http_route_t;
+typedef struct nxt_http_route_s nxt_http_route_t;
+typedef struct nxt_http_route_rule_s nxt_http_route_rule_t;
struct nxt_http_action_s {
@@ -219,6 +220,7 @@ struct nxt_http_action_s {
struct {
nxt_str_t chroot;
nxt_uint_t resolve;
+ nxt_http_route_rule_t *types;
nxt_http_action_t *fallback;
} share;
} u;
@@ -306,6 +308,8 @@ nxt_int_t nxt_http_pass_segments(nxt_mp_t *mp, nxt_str_t *pass,
nxt_str_t *segments, nxt_uint_t n);
nxt_http_action_t *nxt_http_pass_application(nxt_task_t *task,
nxt_router_conf_t *rtcf, nxt_str_t *name);
+nxt_int_t nxt_http_route_test_rule(nxt_http_request_t *r,
+ nxt_http_route_rule_t *rule, u_char *start, size_t length);
nxt_int_t nxt_upstreams_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_conf_value_t *conf);