Lines Matching refs:r

24     nxt_http_request_t *r, nxt_http_action_t *action);
75 nxt_http_return(nxt_task_t *task, nxt_http_request_t *r, in nxt_http_return() argument
100 nxt_http_request_error(task, r, conf->status); in nxt_http_return()
108 ctx = nxt_mp_zget(r->mem_pool, sizeof(nxt_http_return_ctx_t)); in nxt_http_return()
114 r->status = conf->status; in nxt_http_return()
115 r->resp.content_length_n = 0; in nxt_http_return()
122 nxt_http_return_send_ready(task, r, ctx); in nxt_http_return()
125 ret = nxt_var_query_init(&r->var_query, r, r->mem_pool); in nxt_http_return()
130 nxt_var_query(task, r->var_query, conf->location, &ctx->location); in nxt_http_return()
132 nxt_var_query_resolve(task, r->var_query, ctx, in nxt_http_return()
141 nxt_http_request_error(task, r, NXT_HTTP_INTERNAL_SERVER_ERROR); in nxt_http_return()
177 nxt_http_request_t *r; in nxt_http_return_send_ready() local
180 r = obj; in nxt_http_return_send_ready()
185 ret = nxt_http_return_encode(r->mem_pool, &ctx->encoded, in nxt_http_return_send_ready()
192 field = nxt_list_zero_add(r->resp.fields); in nxt_http_return_send_ready()
203 r->state = &nxt_http_return_send_state; in nxt_http_return_send_ready()
205 nxt_http_request_header_send(task, r, NULL, NULL); in nxt_http_return_send_ready()
211 nxt_http_request_error(task, r, NXT_HTTP_INTERNAL_SERVER_ERROR); in nxt_http_return_send_ready()
218 nxt_http_request_t *r; in nxt_http_return_var_error() local
220 r = obj; in nxt_http_return_var_error()
222 nxt_http_request_error(task, r, NXT_HTTP_INTERNAL_SERVER_ERROR); in nxt_http_return_var_error()