Lines Matching refs:conf

39     nxt_http_return_conf_t  *conf;  in nxt_http_return_init()  local
41 conf = nxt_mp_zget(mp, sizeof(nxt_http_return_conf_t)); in nxt_http_return_init()
42 if (nxt_slow_path(conf == NULL)) { in nxt_http_return_init()
47 action->u.conf = conf; in nxt_http_return_init()
49 conf->status = nxt_conf_get_number(acf->ret); in nxt_http_return_init()
57 conf->location = nxt_var_compile(&str, mp, 0); in nxt_http_return_init()
58 if (nxt_slow_path(conf->location == NULL)) { in nxt_http_return_init()
62 if (nxt_var_is_const(conf->location)) { in nxt_http_return_init()
63 nxt_var_raw(conf->location, &str); in nxt_http_return_init()
64 return nxt_http_return_encode(mp, &conf->encoded, &str); in nxt_http_return_init()
77 nxt_http_return_conf_t *conf; in nxt_http_return() local
79 conf = action->u.conf; in nxt_http_return()
84 if (conf->location == NULL) { in nxt_http_return()
88 nxt_var_raw(conf->location, &loc); in nxt_http_return()
91 nxt_debug(task, "http return: %d (loc: \"%V\")", conf->status, &loc); in nxt_http_return()
94 if (conf->status >= NXT_HTTP_BAD_REQUEST in nxt_http_return()
95 && conf->status <= NXT_HTTP_SERVER_ERROR_MAX) in nxt_http_return()
97 nxt_http_request_error(task, r, conf->status); in nxt_http_return()
101 if (conf->location == NULL) { in nxt_http_return()
111 r->status = conf->status; in nxt_http_return()
114 if (ctx == NULL || nxt_var_is_const(conf->location)) { in nxt_http_return()
116 ctx->encoded = conf->encoded; in nxt_http_return()
127 nxt_var_query(task, r->var_query, conf->location, &ctx->location); in nxt_http_return()