Lines Matching refs:hbuf
530 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p) in http_next_header() argument
543 if (hbuf->bufsize < conn->buflen + 1) { in http_next_header()
544 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header()
546 hbuf->bufsize = conn->buflen + 1; in http_next_header()
548 strcpy(hbuf->buf, conn->buf); in http_next_header()
549 hbuf->buflen = conn->buflen; in http_next_header()
570 len = hbuf->buflen + conn->buflen; in http_next_header()
571 if (hbuf->bufsize < len + 1) { in http_next_header()
573 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header()
575 hbuf->bufsize = len + 1; in http_next_header()
577 strcpy(hbuf->buf + hbuf->buflen, conn->buf); in http_next_header()
578 hbuf->buflen += conn->buflen; in http_next_header()
588 if ((*p = http_match(hdr_names[i].name, hbuf->buf)) != NULL) in http_next_header()
1546 char hbuf[MAXHOSTNAMELEN + 7], *host; in http_request_body() local
1612 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port); in http_request_body()
1613 host = hbuf; in http_request_body()