Lines Matching refs:r
238 nxt_http_request_t *r; in nxt_http_var_request_time() local
240 r = ctx; in nxt_http_var_request_time()
243 ms = (now - r->start_time) / 1000000; in nxt_http_var_request_time()
245 str->start = nxt_mp_nget(r->mem_pool, NXT_TIME_T_LEN + 4); in nxt_http_var_request_time()
262 nxt_http_request_t *r; in nxt_http_var_method() local
264 r = ctx; in nxt_http_var_method()
266 *str = *r->method; in nxt_http_var_method()
276 nxt_http_request_t *r; in nxt_http_var_request_uri() local
278 r = ctx; in nxt_http_var_request_uri()
280 *str = r->target; in nxt_http_var_request_uri()
289 nxt_http_request_t *r; in nxt_http_var_uri() local
291 r = ctx; in nxt_http_var_uri()
293 *str = *r->path; in nxt_http_var_uri()
302 nxt_http_request_t *r; in nxt_http_var_host() local
304 r = ctx; in nxt_http_var_host()
306 *str = r->host; in nxt_http_var_host()
316 nxt_http_request_t *r; in nxt_http_var_remote_addr() local
318 r = ctx; in nxt_http_var_remote_addr()
320 str->length = r->remote->address_length; in nxt_http_var_remote_addr()
321 str->start = nxt_sockaddr_address(r->remote); in nxt_http_var_remote_addr()
330 nxt_http_request_t *r; in nxt_http_var_time_local() local
341 r = ctx; in nxt_http_var_time_local()
345 str->start = nxt_mp_nget(r->mem_pool, str->length); in nxt_http_var_time_local()
388 nxt_http_request_t *r; in nxt_http_var_request_line() local
390 r = ctx; in nxt_http_var_request_line()
392 *str = r->request_line; in nxt_http_var_request_line()
404 nxt_http_request_t *r; in nxt_http_var_body_bytes_sent() local
406 r = ctx; in nxt_http_var_body_bytes_sent()
408 str->start = nxt_mp_nget(r->mem_pool, NXT_OFF_T_LEN); in nxt_http_var_body_bytes_sent()
413 bytes = nxt_http_proto[r->protocol].body_bytes_sent(task, r->proto); in nxt_http_var_body_bytes_sent()
427 nxt_http_request_t *r; in nxt_http_var_status() local
429 r = ctx; in nxt_http_var_status()
431 str->start = nxt_mp_nget(r->mem_pool, 3); in nxt_http_var_status()
436 p = nxt_sprintf(str->start, str->start + 3, "%03d", r->status); in nxt_http_var_status()
447 nxt_http_request_t *r; in nxt_http_var_referer() local
449 r = ctx; in nxt_http_var_referer()
451 if (r->referer != NULL) { in nxt_http_var_referer()
452 str->start = r->referer->value; in nxt_http_var_referer()
453 str->length = r->referer->value_length; in nxt_http_var_referer()
466 nxt_http_request_t *r; in nxt_http_var_user_agent() local
468 r = ctx; in nxt_http_var_user_agent()
470 if (r->user_agent != NULL) { in nxt_http_var_user_agent()
471 str->start = r->user_agent->value; in nxt_http_var_user_agent()
472 str->length = r->user_agent->value_length; in nxt_http_var_user_agent()
489 nxt_http_request_t *r; in nxt_http_var_response_connection() local
497 r = ctx; in nxt_http_var_response_connection()
498 h1p = r->proto.h1; in nxt_http_var_response_connection()
502 if (r->websocket_handshake && r->status == NXT_HTTP_SWITCHING_PROTOCOLS) { in nxt_http_var_response_connection()
529 nxt_http_request_t *r; in nxt_http_var_response_content_length() local
531 r = ctx; in nxt_http_var_response_content_length()
533 if (r->resp.content_length != NULL) { in nxt_http_var_response_content_length()
534 str->length = r->resp.content_length->value_length; in nxt_http_var_response_content_length()
535 str->start = r->resp.content_length->value; in nxt_http_var_response_content_length()
540 if (r->resp.content_length_n >= 0) { in nxt_http_var_response_content_length()
541 str->start = nxt_mp_nget(r->mem_pool, NXT_OFF_T_LEN); in nxt_http_var_response_content_length()
547 "%O", r->resp.content_length_n); in nxt_http_var_response_content_length()
564 nxt_http_request_t *r; in nxt_http_var_response_transfer_encoding() local
566 r = ctx; in nxt_http_var_response_transfer_encoding()
568 if (r->proto.h1->chunked) { in nxt_http_var_response_transfer_encoding()
584 nxt_http_request_t *r; in nxt_http_var_arg() local
587 r = ctx; in nxt_http_var_arg()
590 args = nxt_http_arguments_parse(r); in nxt_http_var_arg()
624 nxt_http_request_t *r; in nxt_http_var_header() local
626 r = ctx; in nxt_http_var_header()
629 nxt_list_each(f, r->fields) { in nxt_http_var_header()
654 nxt_http_request_t *r; in nxt_http_var_cookie() local
657 r = ctx; in nxt_http_var_cookie()
660 cookies = nxt_http_cookies_parse(r); in nxt_http_var_cookie()
725 nxt_http_request_t *r; in nxt_http_var_response_header() local
727 r = ctx; in nxt_http_var_response_header()
730 nxt_list_each(f, r->resp.fields) { in nxt_http_var_response_header()