Lines Matching refs:start

18     nxt_http_request_t *r, u_char *start, size_t len);
32 u_char *name, size_t name_length, uint32_t hash, u_char *start,
34 static nxt_int_t nxt_http_cookie_parse(nxt_array_t *cookies, u_char *start,
37 size_t name_length, u_char *start, const u_char *end);
89 if (nxt_slow_path(r->host.start != NULL)) { in nxt_http_request_host()
94 host.start = field->value; in nxt_http_request_host()
122 h = host->start; in nxt_http_validate_host()
187 host->start = nxt_mp_nget(mp, host_length); in nxt_http_validate_host()
188 if (nxt_slow_path(host->start == NULL)) { in nxt_http_validate_host()
192 nxt_memcpy_lowcase(host->start, h, host_length); in nxt_http_validate_host()
376 && nxt_memcasecmp(f->name, client_ip->header->start, in nxt_http_request_forward()
392 && nxt_memcasecmp(f->name, protocol->header->start, in nxt_http_request_forward()
415 u_char *start, *p; in nxt_http_request_forward_client_ip() local
426 start = f[i]->value; in nxt_http_request_forward_client_ip()
430 for (p = start + len - 1; p > start; p--, len--) { in nxt_http_request_forward_client_ip()
436 for (/* void */; p > start; p--) { in nxt_http_request_forward_client_ip()
443 sa = nxt_http_request_client_ip_sockaddr(r, p, len - (p - start)); in nxt_http_request_forward_client_ip()
458 if (ret <= 0 || (i == 0 && p == start)) { in nxt_http_request_forward_client_ip()
464 len = p - 1 - start; in nxt_http_request_forward_client_ip()
472 nxt_http_request_client_ip_sockaddr(nxt_http_request_t *r, u_char *start, in nxt_http_request_client_ip_sockaddr() argument
478 addr.start = start; in nxt_http_request_client_ip_sockaddr()
858 u_char *p, *dst, *dst_start, *start, *end, *name; in nxt_http_arguments_parse() local
882 r->args_decoded.start = dst_start; in nxt_http_arguments_parse()
884 start = r->args->start; in nxt_http_arguments_parse()
885 end = start + r->args->length; in nxt_http_arguments_parse()
887 for (p = start, dst = dst_start; p < end; p++, dst++) { in nxt_http_arguments_parse()
944 r->args_decoded.length = dst - r->args_decoded.start; in nxt_http_arguments_parse()
961 uint32_t hash, u_char *start, const u_char *end) in nxt_http_argument() argument
973 length = end - start; in nxt_http_argument()
977 name = start; in nxt_http_argument()
984 nv->value = start; in nxt_http_argument()
1030 nxt_http_cookie_parse(nxt_array_t *cookies, u_char *start, const u_char *end) in nxt_http_cookie_parse() argument
1039 for (p = start; p < end; p++) { in nxt_http_cookie_parse()
1043 while (start[0] == ' ') { start++; } in nxt_http_cookie_parse()
1045 name_length = p - start; in nxt_http_cookie_parse()
1046 name = start; in nxt_http_cookie_parse()
1048 start = p + 1; in nxt_http_cookie_parse()
1052 nv = nxt_http_cookie(cookies, name, name_length, start, p); in nxt_http_cookie_parse()
1059 start = p + 1; in nxt_http_cookie_parse()
1064 nv = nxt_http_cookie(cookies, name, name_length, start, p); in nxt_http_cookie_parse()
1076 u_char *start, const u_char *end) in nxt_http_cookie() argument
1099 while (start < end && end[-1] == ' ') { end--; } in nxt_http_cookie()
1101 nv->value_length = end - start; in nxt_http_cookie()
1102 nv->value = start; in nxt_http_cookie()
1112 u_char c, *p, *src, *start, *end, plus; in nxt_http_field_hash() local
1120 str.start = nxt_mp_nget(mp, str.length); in nxt_http_field_hash()
1121 if (nxt_slow_path(str.start == NULL)) { in nxt_http_field_hash()
1125 p = str.start; in nxt_http_field_hash()
1131 c = name->start[i]; in nxt_http_field_hash()
1143 start = name->start; in nxt_http_field_hash()
1144 end = start + name->length; in nxt_http_field_hash()
1146 for (src = start; src < end; src++) { in nxt_http_field_hash()
1181 str.length = p - str.start; in nxt_http_field_hash()
1207 str.start = nxt_mp_nget(mp, str.length); in nxt_http_header_hash()
1208 if (nxt_slow_path(str.start == NULL)) { in nxt_http_header_hash()
1212 p = str.start; in nxt_http_header_hash()
1216 c = name->start[i]; in nxt_http_header_hash()