Lines Matching refs:start

132     str->start = nxt_mp_nget(r->mem_pool, NXT_TIME_T_LEN + 4);  in nxt_http_var_request_time()
133 if (nxt_slow_path(str->start == NULL)) { in nxt_http_var_request_time()
137 p = nxt_sprintf(str->start, str->start + NXT_TIME_T_LEN, "%T.%03M", in nxt_http_var_request_time()
140 str->length = p - str->start; in nxt_http_var_request_time()
208 str->start = nxt_sockaddr_address(r->remote); in nxt_http_var_remote_addr()
233 str->start = nxt_mp_nget(r->mem_pool, str->length); in nxt_http_var_time_local()
234 if (nxt_slow_path(str->start == NULL)) { in nxt_http_var_time_local()
238 str->length = nxt_thread_time_string(task->thread, &date_cache, str->start) in nxt_http_var_time_local()
239 - str->start; in nxt_http_var_time_local()
277 u_char *p, *start; in nxt_http_var_request_line() local
284 start = nxt_mp_nget(r->mem_pool, length); in nxt_http_var_request_line()
285 if (nxt_slow_path(start == NULL)) { in nxt_http_var_request_line()
289 p = start; in nxt_http_var_request_line()
292 p = nxt_cpymem(p, r->method->start, r->method->length); in nxt_http_var_request_line()
296 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_http_var_request_line()
300 p = nxt_cpymem(p, r->version.start, r->version.length); in nxt_http_var_request_line()
308 str->start = start; in nxt_http_var_request_line()
309 str->length = p - start; in nxt_http_var_request_line()
324 str->start = nxt_mp_nget(r->mem_pool, NXT_OFF_T_LEN); in nxt_http_var_body_bytes_sent()
325 if (nxt_slow_path(str->start == NULL)) { in nxt_http_var_body_bytes_sent()
331 str->length = nxt_sprintf(str->start, str->start + NXT_OFF_T_LEN, "%O", in nxt_http_var_body_bytes_sent()
332 bytes) - str->start; in nxt_http_var_body_bytes_sent()
345 str->start = nxt_mp_nget(r->mem_pool, 3); in nxt_http_var_status()
346 if (nxt_slow_path(str->start == NULL)) { in nxt_http_var_status()
350 str->length = nxt_sprintf(str->start, str->start + 3, "%03d", r->status) in nxt_http_var_status()
351 - str->start; in nxt_http_var_status()
366 str->start = r->referer->value; in nxt_http_var_referer()
386 str->start = r->user_agent->value; in nxt_http_var_user_agent()
404 nxt_http_name_value_t *nv, *start; in nxt_http_var_arg() local
417 start = args->elts; in nxt_http_var_arg()
418 nv = start + args->nelts - 1; in nxt_http_var_arg()
420 while (nv >= start) { in nxt_http_var_arg()
424 && memcmp(vf->name.start, nv->name, nv->name_length) == 0) in nxt_http_var_arg()
426 str->start = nv->value; in nxt_http_var_arg()
459 && nxt_strncasecmp(vf->name.start, f->name, f->name_length) == 0) in nxt_http_var_header()
461 str->start = f->value; in nxt_http_var_header()
502 && memcmp(vf->name.start, nv->name, nv->name_length) == 0) in nxt_http_var_cookie()
504 str->start = nv->value; in nxt_http_var_cookie()