Lines Matching refs:r

195     nxt_http_request_t *r, nxt_http_action_t *action);
204 nxt_http_request_t *r, nxt_http_action_t *start);
206 nxt_http_request_t *r, nxt_http_route_match_t *match);
207 static nxt_int_t nxt_http_route_table(nxt_http_request_t *r,
209 static nxt_int_t nxt_http_route_ruleset(nxt_http_request_t *r,
211 static nxt_int_t nxt_http_route_rule(nxt_http_request_t *r,
213 static nxt_int_t nxt_http_route_header(nxt_http_request_t *r,
215 static nxt_int_t nxt_http_route_arguments(nxt_http_request_t *r,
217 static nxt_int_t nxt_http_route_test_argument(nxt_http_request_t *r,
219 static nxt_int_t nxt_http_route_scheme(nxt_http_request_t *r,
221 static nxt_int_t nxt_http_route_query(nxt_http_request_t *r,
223 static nxt_int_t nxt_http_route_cookies(nxt_http_request_t *r,
225 static nxt_int_t nxt_http_route_test_cookie(nxt_http_request_t *r,
227 static nxt_int_t nxt_http_route_pattern(nxt_http_request_t *r,
1293 nxt_http_pass_var(nxt_task_t *task, nxt_http_request_t *r, in nxt_http_pass_var() argument
1306 ret = nxt_var_query_init(&r->var_query, r, r->mem_pool); in nxt_http_pass_var()
1311 action = nxt_mp_get(r->mem_pool, in nxt_http_pass_var()
1319 nxt_var_query(task, r->var_query, var, action->u.pass); in nxt_http_pass_var()
1320 nxt_var_query_resolve(task, r->var_query, action, in nxt_http_pass_var()
1327 nxt_http_request_error(task, r, NXT_HTTP_INTERNAL_SERVER_ERROR); in nxt_http_pass_var()
1339 nxt_http_request_t *r; in nxt_http_pass_var_ready() local
1341 r = obj; in nxt_http_pass_var_ready()
1343 rtcf = r->conf->socket_conf->router_conf; in nxt_http_pass_var_ready()
1347 ret = nxt_http_pass_find(r->mem_pool, rtcf, action->u.pass, action); in nxt_http_pass_var_ready()
1353 nxt_http_request_error(task, r, status); in nxt_http_pass_var_ready()
1357 nxt_http_request_action(task, r, action); in nxt_http_pass_var_ready()
1364 nxt_http_request_t *r; in nxt_http_pass_var_error() local
1366 r = obj; in nxt_http_pass_var_error()
1368 nxt_http_request_error(task, r, NXT_HTTP_INTERNAL_SERVER_ERROR); in nxt_http_pass_var_error()
1536 nxt_http_route_handler(nxt_task_t *task, nxt_http_request_t *r, in nxt_http_route_handler() argument
1548 action = nxt_http_route_match(task, r, *match); in nxt_http_route_handler()
1556 nxt_http_request_error(task, r, NXT_HTTP_NOT_FOUND); in nxt_http_route_handler()
1563 nxt_http_route_match(nxt_task_t *task, nxt_http_request_t *r, in nxt_http_route_match() argument
1575 ret = nxt_http_route_table(r, test->table); in nxt_http_route_match()
1578 ret = nxt_http_route_addr_rule(r, test->addr_rule, r->remote); in nxt_http_route_match()
1581 if (r->local == NULL && nxt_fast_path(r->proto.any != NULL)) { in nxt_http_route_match()
1582 nxt_http_proto[r->protocol].local_addr(task, r); in nxt_http_route_match()
1585 ret = nxt_http_route_addr_rule(r, test->addr_rule, r->local); in nxt_http_route_match()
1588 ret = nxt_http_route_rule(r, test->rule); in nxt_http_route_match()
1605 nxt_http_route_table(nxt_http_request_t *r, nxt_http_route_table_t *table) in nxt_http_route_table() argument
1615 ret = nxt_http_route_ruleset(r, *ruleset); in nxt_http_route_table()
1629 nxt_http_route_ruleset(nxt_http_request_t *r, nxt_http_route_ruleset_t *ruleset) in nxt_http_route_ruleset() argument
1638 ret = nxt_http_route_rule(r, *rule); in nxt_http_route_ruleset()
1652 nxt_http_route_rule(nxt_http_request_t *r, nxt_http_route_rule_t *rule) in nxt_http_route_rule() argument
1662 return nxt_http_route_header(r, rule); in nxt_http_route_rule()
1665 return nxt_http_route_arguments(r, rule); in nxt_http_route_rule()
1668 return nxt_http_route_cookies(r, rule); in nxt_http_route_rule()
1671 return nxt_http_route_scheme(r, rule); in nxt_http_route_rule()
1674 return nxt_http_route_query(r, rule); in nxt_http_route_rule()
1680 p = nxt_pointer_to(r, rule->u.offset); in nxt_http_route_rule()
1698 return nxt_http_route_test_rule(r, rule, start, length); in nxt_http_route_rule()
1838 nxt_http_route_addr_rule(nxt_http_request_t *r, in nxt_http_route_addr_rule() argument
1878 nxt_http_route_header(nxt_http_request_t *r, nxt_http_route_rule_t *rule) in nxt_http_route_header() argument
1885 nxt_list_each(f, r->fields) { in nxt_http_route_header()
1895 ret = nxt_http_route_test_rule(r, rule, f->value, f->value_length); in nxt_http_route_header()
1911 nxt_http_route_arguments(nxt_http_request_t *r, nxt_http_route_rule_t *rule) in nxt_http_route_arguments() argument
1915 arguments = nxt_http_arguments_parse(r); in nxt_http_route_arguments()
1920 return nxt_http_route_test_argument(r, rule, arguments); in nxt_http_route_arguments()
1925 nxt_http_route_test_argument(nxt_http_request_t *r, in nxt_http_route_test_argument() argument
1942 ret = nxt_http_route_test_rule(r, rule, nv->value, in nxt_http_route_test_argument()
1961 nxt_http_route_scheme(nxt_http_request_t *r, nxt_http_route_rule_t *rule) in nxt_http_route_scheme() argument
1969 return (r->tls == https); in nxt_http_route_scheme()
1974 nxt_http_route_query(nxt_http_request_t *r, nxt_http_route_rule_t *rule) in nxt_http_route_query() argument
1978 arguments = nxt_http_arguments_parse(r); in nxt_http_route_query()
1983 return nxt_http_route_test_rule(r, rule, r->args_decoded.start, in nxt_http_route_query()
1984 r->args_decoded.length); in nxt_http_route_query()
1989 nxt_http_route_cookies(nxt_http_request_t *r, nxt_http_route_rule_t *rule) in nxt_http_route_cookies() argument
1993 cookies = nxt_http_cookies_parse(r); in nxt_http_route_cookies()
1998 return nxt_http_route_test_cookie(r, rule, cookies); in nxt_http_route_cookies()
2003 nxt_http_route_test_cookie(nxt_http_request_t *r, in nxt_http_route_test_cookie() argument
2020 ret = nxt_http_route_test_rule(r, rule, nv->value, in nxt_http_route_test_cookie()
2039 nxt_http_route_test_rule(nxt_http_request_t *r, nxt_http_route_rule_t *rule, in nxt_http_route_test_rule() argument
2050 ret = nxt_http_route_pattern(r, pattern, start, length); in nxt_http_route_test_rule()
2070 nxt_http_route_pattern(nxt_http_request_t *r, nxt_http_route_pattern_t *pattern, in nxt_http_route_pattern() argument
2081 if (r->regex_match == NULL) { in nxt_http_route_pattern()
2082 r->regex_match = nxt_regex_match_create(r->mem_pool, 0); in nxt_http_route_pattern()
2083 if (nxt_slow_path(r->regex_match == NULL)) { in nxt_http_route_pattern()
2088 return nxt_regex_match(pattern->u.regex, start, length, r->regex_match); in nxt_http_route_pattern()