Lines Matching refs:hbp

158 	char *hbp       /* pointer to current line in header buffer */  in httpread_hdr_option_analyze()  argument
161 if (word_eq(hbp, "CONTENT-LENGTH:")) { in httpread_hdr_option_analyze()
162 while (isgraph(*hbp)) in httpread_hdr_option_analyze()
163 hbp++; in httpread_hdr_option_analyze()
164 while (*hbp == ' ' || *hbp == '\t') in httpread_hdr_option_analyze()
165 hbp++; in httpread_hdr_option_analyze()
166 if (!isdigit(*hbp)) in httpread_hdr_option_analyze()
168 h->content_length = atol(hbp); in httpread_hdr_option_analyze()
178 if (word_eq(hbp, "TRANSFER_ENCODING:") || in httpread_hdr_option_analyze()
179 word_eq(hbp, "TRANSFER-ENCODING:")) { in httpread_hdr_option_analyze()
180 while (isgraph(*hbp)) in httpread_hdr_option_analyze()
181 hbp++; in httpread_hdr_option_analyze()
182 while (*hbp == ' ' || *hbp == '\t') in httpread_hdr_option_analyze()
183 hbp++; in httpread_hdr_option_analyze()
187 if (word_eq(hbp, "CHUNKED")) { in httpread_hdr_option_analyze()
201 char *hbp = h->hdr; /* pointer into h->hdr */ in httpread_hdr_analyze() local
206 if (!isgraph(*hbp)) in httpread_hdr_analyze()
208 if (os_strncmp(hbp, "HTTP/", 5) == 0) { in httpread_hdr_analyze()
211 hbp += 5; in httpread_hdr_analyze()
212 if (hbp[0] == '1' && hbp[1] == '.' && in httpread_hdr_analyze()
213 isdigit(hbp[2]) && hbp[2] != '0') in httpread_hdr_analyze()
215 while (isgraph(*hbp)) in httpread_hdr_analyze()
216 hbp++; in httpread_hdr_analyze()
217 while (*hbp == ' ' || *hbp == '\t') in httpread_hdr_analyze()
218 hbp++; in httpread_hdr_analyze()
219 if (!isdigit(*hbp)) in httpread_hdr_analyze()
221 h->reply_code = atol(hbp); in httpread_hdr_analyze()
222 } else if (word_eq(hbp, "GET")) in httpread_hdr_analyze()
224 else if (word_eq(hbp, "HEAD")) in httpread_hdr_analyze()
226 else if (word_eq(hbp, "POST")) in httpread_hdr_analyze()
228 else if (word_eq(hbp, "PUT")) in httpread_hdr_analyze()
230 else if (word_eq(hbp, "DELETE")) in httpread_hdr_analyze()
232 else if (word_eq(hbp, "TRACE")) in httpread_hdr_analyze()
234 else if (word_eq(hbp, "CONNECT")) in httpread_hdr_analyze()
236 else if (word_eq(hbp, "NOTIFY")) in httpread_hdr_analyze()
238 else if (word_eq(hbp, "M-SEARCH")) in httpread_hdr_analyze()
240 else if (word_eq(hbp, "M-POST")) in httpread_hdr_analyze()
242 else if (word_eq(hbp, "SUBSCRIBE")) in httpread_hdr_analyze()
244 else if (word_eq(hbp, "UNSUBSCRIBE")) in httpread_hdr_analyze()
253 while (isgraph(*hbp)) in httpread_hdr_analyze()
254 hbp++; in httpread_hdr_analyze()
255 while (*hbp == ' ' || *hbp == '\t') in httpread_hdr_analyze()
256 hbp++; in httpread_hdr_analyze()
262 rawuri = hbp; in httpread_hdr_analyze()
263 while (isgraph(*hbp)) in httpread_hdr_analyze()
264 hbp++; in httpread_hdr_analyze()
265 h->uri = os_malloc((hbp - rawuri) + 1); in httpread_hdr_analyze()
269 while (rawuri < hbp) { in httpread_hdr_analyze()
281 while (*hbp == ' ' || *hbp == '\t') in httpread_hdr_analyze()
282 hbp++; in httpread_hdr_analyze()
284 if (0 == strncmp(hbp, "HTTP/", 5)) { in httpread_hdr_analyze()
285 hbp += 5; in httpread_hdr_analyze()
286 if (hbp[0] == '1' && hbp[1] == '.' && in httpread_hdr_analyze()
287 isdigit(hbp[2]) && hbp[2] != '0') in httpread_hdr_analyze()
292 while (*hbp) in httpread_hdr_analyze()
293 if (*hbp++ == '\n') in httpread_hdr_analyze()
301 if (hbp[0] == '\n' || in httpread_hdr_analyze()
302 (hbp[0] == '\r' && hbp[1] == '\n')) in httpread_hdr_analyze()
304 if (!isgraph(*hbp)) in httpread_hdr_analyze()
306 if (httpread_hdr_option_analyze(h, hbp)) in httpread_hdr_analyze()
309 while (*hbp) in httpread_hdr_analyze()
310 if (*hbp++ == '\n') in httpread_hdr_analyze()
372 char *hbp; /* pointer into header buffer */ in httpread_read_handler() local
418 hbp = h->hdr + h->hdr_nbytes; in httpread_read_handler()
432 *hbp++ = *rbp++; in httpread_read_handler()
436 hbp[-1] == '\n' && in httpread_read_handler()
437 hbp[-2] == '\r' && in httpread_read_handler()
438 hbp[-3] == '\n' && in httpread_read_handler()
439 hbp[-4] == '\r' ) { in httpread_read_handler()
441 *hbp = 0; /* null terminate */ in httpread_read_handler()