Lines Matching refs:ret

399     nxt_int_t                    ret;  in nxt_http_route_match_create()  local
430 ret = nxt_http_action_init(task, tmcf, action_conf, &match->action); in nxt_http_route_match_create()
431 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_match_create()
441 ret = nxt_conf_map_object(tmcf->mem_pool, in nxt_http_route_match_create()
444 if (ret != NXT_OK) { in nxt_http_route_match_create()
589 offsetof(nxt_http_action_conf_t, ret)
644 nxt_int_t ret; in nxt_http_action_init() local
650 ret = nxt_conf_map_object(tmcf->mem_pool, cv, nxt_http_route_action_conf, in nxt_http_action_init()
652 if (ret != NXT_OK) { in nxt_http_action_init()
653 return ret; in nxt_http_action_init()
660 if (acf.ret != NULL) { in nxt_http_action_init()
806 nxt_int_t ret; in nxt_http_route_rule_create() local
829 ret = nxt_http_route_pattern_create(task, mp, value, &pattern[i], in nxt_http_route_rule_create()
831 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_rule_create()
930 nxt_int_t ret; in nxt_http_route_pattern_create() local
1036 ret = nxt_http_route_pattern_slice(slices, &tmp, type, encoding, in nxt_http_route_pattern_create()
1038 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_pattern_create()
1039 return ret; in nxt_http_route_pattern_create()
1065 ret = nxt_http_route_pattern_slice(slices, &tmp, in nxt_http_route_pattern_create()
1068 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_pattern_create()
1069 return ret; in nxt_http_route_pattern_create()
1093 ret = nxt_http_route_pattern_slice(slices, &tmp, in nxt_http_route_pattern_create()
1096 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_pattern_create()
1097 return ret; in nxt_http_route_pattern_create()
1107 ret = nxt_http_route_pattern_slice(slices, &tmp, in nxt_http_route_pattern_create()
1110 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_pattern_create()
1111 return ret; in nxt_http_route_pattern_create()
1167 nxt_int_t ret; in nxt_http_route_pattern_slice() local
1170 ret = nxt_http_route_decode_str(test, encoding); in nxt_http_route_pattern_slice()
1171 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_pattern_slice()
1172 return ret; in nxt_http_route_pattern_slice()
1211 nxt_int_t ret; in nxt_http_routes_resolve() local
1222 ret = nxt_http_route_resolve(task, tmcf, *route); in nxt_http_routes_resolve()
1223 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_routes_resolve()
1239 nxt_int_t ret; in nxt_http_route_resolve() local
1246 ret = nxt_http_action_resolve(task, tmcf, &(*match)->action); in nxt_http_route_resolve()
1247 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_resolve()
1262 nxt_int_t ret; in nxt_http_action_resolve() local
1276 ret = nxt_http_pass_find(tmcf->mem_pool, tmcf->router_conf, &pass, in nxt_http_action_resolve()
1278 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_action_resolve()
1294 nxt_int_t ret; in nxt_http_pass_var() local
1304 ret = nxt_var_query_init(&r->var_query, r, r->mem_pool); in nxt_http_pass_var()
1305 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_pass_var()
1333 nxt_int_t ret; in nxt_http_pass_var_ready() local
1345 ret = nxt_http_pass_find(r->mem_pool, rtcf, action->u.pass, action); in nxt_http_pass_var_ready()
1347 if (ret != NXT_OK) { in nxt_http_pass_var_ready()
1348 status = (ret == NXT_DECLINED) ? NXT_HTTP_NOT_FOUND in nxt_http_pass_var_ready()
1374 nxt_int_t ret; in nxt_http_pass_find() local
1377 ret = nxt_http_pass_segments(mp, pass, segments, 3); in nxt_http_pass_find()
1378 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_pass_find()
1379 return ret; in nxt_http_pass_find()
1486 nxt_int_t ret; in nxt_http_action_create() local
1503 ret = nxt_http_action_resolve(task, tmcf, action); in nxt_http_action_create()
1504 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_action_create()
1562 nxt_int_t ret; in nxt_http_route_match() local
1571 ret = nxt_http_route_table(r, test->table); in nxt_http_route_match()
1574 ret = nxt_http_route_addr_rule(r, test->addr_rule, r->remote); in nxt_http_route_match()
1581 ret = nxt_http_route_addr_rule(r, test->addr_rule, r->local); in nxt_http_route_match()
1584 ret = nxt_http_route_rule(r, test->rule); in nxt_http_route_match()
1588 if (ret <= 0) { in nxt_http_route_match()
1590 return (nxt_http_action_t *) (intptr_t) ret; in nxt_http_route_match()
1603 nxt_int_t ret; in nxt_http_route_table() local
1606 ret = 1; in nxt_http_route_table()
1611 ret = nxt_http_route_ruleset(r, *ruleset); in nxt_http_route_table()
1613 if (ret != 0) { in nxt_http_route_table()
1614 return ret; in nxt_http_route_table()
1620 return ret; in nxt_http_route_table()
1627 nxt_int_t ret; in nxt_http_route_ruleset() local
1634 ret = nxt_http_route_rule(r, *rule); in nxt_http_route_ruleset()
1636 if (ret <= 0) { in nxt_http_route_ruleset()
1637 return ret; in nxt_http_route_ruleset()
1869 nxt_int_t ret; in nxt_http_route_header() local
1872 ret = 0; in nxt_http_route_header()
1884 ret = nxt_http_route_test_rule(r, rule, f->value, f->value_length); in nxt_http_route_header()
1885 if (nxt_slow_path(ret == NXT_ERROR)) { in nxt_http_route_header()
1889 if (ret == 0) { in nxt_http_route_header()
1890 return ret; in nxt_http_route_header()
1895 return ret; in nxt_http_route_header()
1917 nxt_int_t ret; in nxt_http_route_test_argument() local
1920 ret = 0; in nxt_http_route_test_argument()
1931 ret = nxt_http_route_test_rule(r, rule, nv->value, in nxt_http_route_test_argument()
1933 if (nxt_slow_path(ret == NXT_ERROR)) { in nxt_http_route_test_argument()
1937 if (ret == 0) { in nxt_http_route_test_argument()
1945 return ret; in nxt_http_route_test_argument()
1995 nxt_int_t ret; in nxt_http_route_test_cookie() local
1998 ret = 0; in nxt_http_route_test_cookie()
2009 ret = nxt_http_route_test_rule(r, rule, nv->value, in nxt_http_route_test_cookie()
2011 if (nxt_slow_path(ret == NXT_ERROR)) { in nxt_http_route_test_cookie()
2015 if (ret == 0) { in nxt_http_route_test_cookie()
2023 return ret; in nxt_http_route_test_cookie()
2031 nxt_int_t ret; in nxt_http_route_test_rule() local
2034 ret = 1; in nxt_http_route_test_rule()
2039 ret = nxt_http_route_pattern(r, pattern, start, length); in nxt_http_route_test_rule()
2040 if (nxt_slow_path(ret == NXT_ERROR)) { in nxt_http_route_test_rule()
2045 ret ^= pattern->negative; in nxt_http_route_test_rule()
2047 if (pattern->any == ret) { in nxt_http_route_test_rule()
2048 return ret; in nxt_http_route_test_rule()
2054 return ret; in nxt_http_route_test_rule()