HTTP: controlling response headers support.
This commit is contained in:
@@ -228,6 +228,7 @@ typedef struct nxt_http_route_addr_rule_s nxt_http_route_addr_rule_t;
|
||||
|
||||
typedef struct {
|
||||
nxt_conf_value_t *rewrite;
|
||||
nxt_conf_value_t *set_headers;
|
||||
nxt_conf_value_t *pass;
|
||||
nxt_conf_value_t *ret;
|
||||
nxt_conf_value_t *location;
|
||||
@@ -256,6 +257,7 @@ struct nxt_http_action_s {
|
||||
} u;
|
||||
|
||||
nxt_tstr_t *rewrite;
|
||||
nxt_array_t *set_headers; /* of nxt_http_field_t */
|
||||
nxt_http_action_t *fallback;
|
||||
};
|
||||
|
||||
@@ -385,6 +387,10 @@ nxt_int_t nxt_http_rewrite_init(nxt_router_conf_t *rtcf,
|
||||
nxt_http_action_t *action, nxt_http_action_conf_t *acf);
|
||||
nxt_int_t nxt_http_rewrite(nxt_task_t *task, nxt_http_request_t *r);
|
||||
|
||||
nxt_int_t nxt_http_set_headers_init(nxt_router_conf_t *rtcf,
|
||||
nxt_http_action_t *action, nxt_http_action_conf_t *acf);
|
||||
nxt_int_t nxt_http_set_headers(nxt_http_request_t *r);
|
||||
|
||||
nxt_int_t nxt_http_return_init(nxt_router_conf_t *rtcf,
|
||||
nxt_http_action_t *action, nxt_http_action_conf_t *acf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user