Lines Matching refs:hbuf
529 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p) in http_next_header() argument
542 if (hbuf->bufsize < conn->buflen + 1) { in http_next_header()
543 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header()
545 hbuf->bufsize = conn->buflen + 1; in http_next_header()
547 strcpy(hbuf->buf, conn->buf); in http_next_header()
548 hbuf->buflen = conn->buflen; in http_next_header()
569 len = hbuf->buflen + conn->buflen; in http_next_header()
570 if (hbuf->bufsize < len + 1) { in http_next_header()
572 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header()
574 hbuf->bufsize = len + 1; in http_next_header()
576 strcpy(hbuf->buf + hbuf->buflen, conn->buf); in http_next_header()
577 hbuf->buflen += conn->buflen; in http_next_header()
587 if ((*p = http_match(hdr_names[i].name, hbuf->buf)) != NULL) in http_next_header()
1588 char hbuf[MAXHOSTNAMELEN + 7], *host; in http_request_body() local
1654 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port); in http_request_body()
1655 host = hbuf; in http_request_body()