Lines Matching refs:hbuf
531 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p) in http_next_header() argument
544 if (hbuf->bufsize < conn->buflen + 1) { in http_next_header()
545 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header()
547 hbuf->bufsize = conn->buflen + 1; in http_next_header()
549 strcpy(hbuf->buf, conn->buf); in http_next_header()
550 hbuf->buflen = conn->buflen; in http_next_header()
571 len = hbuf->buflen + conn->buflen; in http_next_header()
572 if (hbuf->bufsize < len + 1) { in http_next_header()
574 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header()
576 hbuf->bufsize = len + 1; in http_next_header()
578 strcpy(hbuf->buf + hbuf->buflen, conn->buf); in http_next_header()
579 hbuf->buflen += conn->buflen; in http_next_header()
589 if ((*p = http_match(hdr_names[i].name, hbuf->buf)) != NULL) in http_next_header()
1592 char hbuf[MAXHOSTNAMELEN + 7], *host; in http_request_body() local
1658 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port); in http_request_body()
1659 host = hbuf; in http_request_body()