Lines Matching refs:hbuf
528 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p)
541 if (hbuf->bufsize < conn->buflen + 1) {
542 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL)
544 hbuf->bufsize = conn->buflen + 1;
546 strcpy(hbuf->buf, conn->buf);
547 hbuf->buflen = conn->buflen;
568 len = hbuf->buflen + conn->buflen;
569 if (hbuf->bufsize < len + 1) {
571 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL)
573 hbuf->bufsize = len + 1;
575 strcpy(hbuf->buf + hbuf->buflen, conn->buf);
576 hbuf->buflen += conn->buflen;
586 if ((*p = http_match(hdr_names[i].name, hbuf->buf)) != NULL)
1544 char hbuf[MAXHOSTNAMELEN + 7], *host;
1610 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port);
1611 host = hbuf;