Lines Matching refs:k

369 … const restrict r, const enum http_header_e id, const char * const restrict k, const size_t klen, …  in http_request_parse_duplicate()  argument
373 const buffer * const vb = http_header_request_get(r, id, k, klen); in http_request_parse_duplicate()
408 … const restrict r, const enum http_header_e id, const char * const restrict k, const size_t klen, … in http_request_parse_single_header() argument
445 return http_request_parse_duplicate(r, id, k, klen, v, vlen); in http_request_parse_single_header()
497 http_header_request_append(r, id, k, klen, v, vlen); in http_request_parse_single_header()
562 …rse_header_other(request_st * const restrict r, const char * const restrict k, const int klen, con…
637 const char * const restrict k = hpctx->k; in http_request_parse_header() local
660 if (*k == ':') { in http_request_parse_header()
677 if (0 == memcmp(k+1, "path", 4)) in http_request_parse_header()
681 if (0 == memcmp(k+1, "method", 6)) in http_request_parse_header()
683 else if (0 == memcmp(k+1, "scheme", 6)) in http_request_parse_header()
687 if (0 == memcmp(k+1, "protocol", 8)) in http_request_parse_header()
691 if (0 == memcmp(k+1, "authority", 9)) in http_request_parse_header()
798 while (j < klen && (light_islower(k[j]) || k[j] == '-')) in http_request_parse_header()
802 if (light_isupper(k[j])) in http_request_parse_header()
804 if (0 != http_request_parse_header_other(r, k+j, klen-j, in http_request_parse_header()
809 hpctx->id = http_header_hkey_get_lc(k, klen); in http_request_parse_header()
819 return http_request_parse_single_header(r, id, k, klen, v, vlen); in http_request_parse_header()
823 if (*k == ':') in http_request_parse_header()
1061 …rse_header_other(request_st * const restrict r, const char * const restrict k, const int klen, con… in http_request_parse_header_other() argument
1063 if (light_isalpha(k[i]) || k[i] == '-') continue; /*(common cases)*/ in http_request_parse_header_other()
1069 switch(k[i]) { in http_request_parse_header_other()
1092 … return http_request_header_char_invalid(r, k[i], "invalid character in header key -> 400"); in http_request_parse_header_other()
1094 if (http_header_strict ? (k[i] < 32 || ((unsigned char *)k)[i] >= 127) : k[i] == '\0') in http_request_parse_header_other()
1095 … return http_request_header_char_invalid(r, k[i], "invalid character in header key -> 400"); in http_request_parse_header_other()
1114 const char *k = ptr + hoff[i]; in http_request_parse_headers() local
1118 const char *colon = memchr(k, ':', end - k); in http_request_parse_headers()
1148 const int klen = (int)(colon - k); in http_request_parse_headers()
1151 const enum http_header_e id = http_header_hkey_get(k, klen); in http_request_parse_headers()
1155 if (light_isalpha(k[j]) || k[j] == '-') continue; /*(common cases)*/ in http_request_parse_headers()
1156 if (0 != http_request_parse_header_other(r, k+j, klen-j, http_header_strict)) in http_request_parse_headers()
1171 force_assert(end - k >= 2); in http_request_parse_headers()
1181 force_assert(end >= k + 2); in http_request_parse_headers()
1204 int status = http_request_parse_single_header(r, id, k, (size_t)klen, v, (size_t)vlen); in http_request_parse_headers()