Lines Matching refs:hbufp

643 	char *hbufp  = hbuf0;  in vs_icap_create_respmod_hdr()  local
654 (void) memset(hbufp, 0, hbufsp); in vs_icap_create_respmod_hdr()
657 tlen = snprintf(hbufp, hbufsp, "RESPMOD icap://%s:%d/%s %s\r\n", in vs_icap_create_respmod_hdr()
661 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
663 tlen = snprintf(hbufp, hbufsp, "Host: %s\r\n", my_host_name); in vs_icap_create_respmod_hdr()
666 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
668 tlen = snprintf(hbufp, hbufsp, "Allow: 204\r\n"); in vs_icap_create_respmod_hdr()
671 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
674 tlen = snprintf(hbufp, hbufsp, "Preview: %d\r\n", preview_len); in vs_icap_create_respmod_hdr()
677 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
681 encap_hdr = hbufp; in vs_icap_create_respmod_hdr()
682 tlen = snprintf(hbufp, hbufsp, "%*.*s\r\n\r\n", in vs_icap_create_respmod_hdr()
686 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
689 encap_off0 = hbufp; in vs_icap_create_respmod_hdr()
692 req_hdr = hbufp; in vs_icap_create_respmod_hdr()
693 tlen = snprintf(hbufp, hbufsp, "GET http://%s", my_host_name); in vs_icap_create_respmod_hdr()
696 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
698 tlen = vs_icap_uri_encode(hbufp, hbufsp, ctx->vsc_fname); in vs_icap_create_respmod_hdr()
701 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
703 tlen = snprintf(hbufp, hbufsp, " HTTP/1.1\r\n\r\n"); in vs_icap_create_respmod_hdr()
706 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
709 res_hdr = hbufp; in vs_icap_create_respmod_hdr()
710 tlen = snprintf(hbufp, hbufsp, "HTTP/1.1 200 OK\r\n"); in vs_icap_create_respmod_hdr()
713 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
715 tlen = snprintf(hbufp, hbufsp, "Transfer-Encoding: chunked\r\n\r\n"); in vs_icap_create_respmod_hdr()
718 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
721 res_body = hbufp; in vs_icap_create_respmod_hdr()
731 return (hbufp - hbuf0); in vs_icap_create_respmod_hdr()