Lines Matching refs:r

125     nxt_http_request_t  *r;  in nxt_http_var_request_time()  local
127 r = ctx; in nxt_http_var_request_time()
130 ms = (now - r->start_time) / 1000000; in nxt_http_var_request_time()
132 str->start = nxt_mp_nget(r->mem_pool, NXT_TIME_T_LEN + 4); in nxt_http_var_request_time()
149 nxt_http_request_t *r; in nxt_http_var_method() local
151 r = ctx; in nxt_http_var_method()
153 *str = *r->method; in nxt_http_var_method()
163 nxt_http_request_t *r; in nxt_http_var_request_uri() local
165 r = ctx; in nxt_http_var_request_uri()
167 *str = r->target; in nxt_http_var_request_uri()
176 nxt_http_request_t *r; in nxt_http_var_uri() local
178 r = ctx; in nxt_http_var_uri()
180 *str = *r->path; in nxt_http_var_uri()
189 nxt_http_request_t *r; in nxt_http_var_host() local
191 r = ctx; in nxt_http_var_host()
193 *str = r->host; in nxt_http_var_host()
203 nxt_http_request_t *r; in nxt_http_var_remote_addr() local
205 r = ctx; in nxt_http_var_remote_addr()
207 str->length = r->remote->address_length; in nxt_http_var_remote_addr()
208 str->start = nxt_sockaddr_address(r->remote); in nxt_http_var_remote_addr()
218 nxt_http_request_t *r; in nxt_http_var_time_local() local
229 r = ctx; in nxt_http_var_time_local()
233 str->start = nxt_mp_nget(r->mem_pool, str->length); in nxt_http_var_time_local()
278 nxt_http_request_t *r; in nxt_http_var_request_line() local
280 r = ctx; in nxt_http_var_request_line()
282 length = r->method->length + 1 + r->target.length + 1 + r->version.length; in nxt_http_var_request_line()
284 start = nxt_mp_nget(r->mem_pool, length); in nxt_http_var_request_line()
291 if (r->method->length != 0) { in nxt_http_var_request_line()
292 p = nxt_cpymem(p, r->method->start, r->method->length); in nxt_http_var_request_line()
294 if (r->target.length != 0) { in nxt_http_var_request_line()
296 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_http_var_request_line()
298 if (r->version.length != 0) { in nxt_http_var_request_line()
300 p = nxt_cpymem(p, r->version.start, r->version.length); in nxt_http_var_request_line()
320 nxt_http_request_t *r; in nxt_http_var_body_bytes_sent() local
322 r = ctx; in nxt_http_var_body_bytes_sent()
324 str->start = nxt_mp_nget(r->mem_pool, NXT_OFF_T_LEN); in nxt_http_var_body_bytes_sent()
329 bytes = nxt_http_proto[r->protocol].body_bytes_sent(task, r->proto); in nxt_http_var_body_bytes_sent()
341 nxt_http_request_t *r; in nxt_http_var_status() local
343 r = ctx; in nxt_http_var_status()
345 str->start = nxt_mp_nget(r->mem_pool, 3); in nxt_http_var_status()
350 str->length = nxt_sprintf(str->start, str->start + 3, "%03d", r->status) in nxt_http_var_status()
361 nxt_http_request_t *r; in nxt_http_var_referer() local
363 r = ctx; in nxt_http_var_referer()
365 if (r->referer != NULL) { in nxt_http_var_referer()
366 str->start = r->referer->value; in nxt_http_var_referer()
367 str->length = r->referer->value_length; in nxt_http_var_referer()
381 nxt_http_request_t *r; in nxt_http_var_user_agent() local
383 r = ctx; in nxt_http_var_user_agent()
385 if (r->user_agent != NULL) { in nxt_http_var_user_agent()
386 str->start = r->user_agent->value; in nxt_http_var_user_agent()
387 str->length = r->user_agent->value_length; in nxt_http_var_user_agent()
403 nxt_http_request_t *r; in nxt_http_var_arg() local
406 r = ctx; in nxt_http_var_arg()
408 rtcf = r->conf->socket_conf->router_conf; in nxt_http_var_arg()
412 args = nxt_http_arguments_parse(r); in nxt_http_var_arg()
447 nxt_http_request_t *r; in nxt_http_var_header() local
449 r = ctx; in nxt_http_var_header()
451 rtcf = r->conf->socket_conf->router_conf; in nxt_http_var_header()
455 nxt_list_each(f, r->fields) { in nxt_http_var_header()
481 nxt_http_request_t *r; in nxt_http_var_cookie() local
484 r = ctx; in nxt_http_var_cookie()
486 rtcf = r->conf->socket_conf->router_conf; in nxt_http_var_cookie()
490 cookies = nxt_http_cookies_parse(r); in nxt_http_var_cookie()