Lines Matching refs:hoff
851 …opts * const restrict opts, char * const restrict s, const unsigned short hoff[8192], const int is… in http_response_process_headers()
888 for (; i < hoff[0]; ++i) { in http_response_process_headers()
889 const char *k = s+hoff[i], *value; in http_response_process_headers()
890 char *end = s+hoff[i+1]-1; /*('\n')*/ in http_response_process_headers()
1121 unsigned short hoff[8192]; /* max num header lines + 3; 16k on stack */ in http_response_parse_headers() local
1122 hoff[0] = 1; /* number of lines */ in http_response_parse_headers()
1123 hoff[1] = 0; /* base offset for all lines */ in http_response_parse_headers()
1124 hoff[2] = 0; /* offset from base for 2nd line; init 0 to detect '\n' */ in http_response_parse_headers()
1126 header_len = http_header_parse_hoff(b->ptr, blen, hoff); in http_response_parse_headers()
1134 if (hoff[2]) { /*(at least one newline found if offset is non-zero)*/ in http_response_parse_headers()
1136 is_nph = hoff[2] >= 12 && 0 == memcmp(b->ptr, "HTTP/", 5); in http_response_parse_headers()
1138 const char * colon = memchr(b->ptr, ':', hoff[2]-1); in http_response_parse_headers()
1140 if (hoff[2] <= 2 && (1 == hoff[2] || b->ptr[0] == '\r')) { in http_response_parse_headers()
1169 if (0 != http_response_process_headers(r, opts, b->ptr, hoff, is_nph)) in http_response_parse_headers()