Lines Matching refs:response_header
82 buffer *response_header; member
91 hctx->response_header = buffer_init(); in cgi_handler_ctx_init()
98 buffer_free(hctx->response_header); in cgi_handler_ctx_free()
390 buffer_append_string_buffer(hctx->response_header, hctx->response); in cgi_demux_response()
414 if (0 == strncmp(hctx->response_header->ptr, "HTTP/1.", 7)) is_header = 1; in cgi_demux_response()
416 for (i = 0; !is_header_end && i < hctx->response_header->used - 1; i++) { in cgi_demux_response()
417 char c = hctx->response_header->ptr[i]; in cgi_demux_response()
442 (i - last_eol == 2 && hctx->response_header->ptr[i - 1] == '\r'))) { in cgi_demux_response()
461 http_chunk_append_mem(srv, con, hctx->response_header->ptr, hctx->response_header->used); in cgi_demux_response()
475 bstart = hctx->response_header->ptr + (i + 1); in cgi_demux_response()
476 blen = (hctx->response_header->used - 1) - (i + 1); in cgi_demux_response()
479 if (i > 0 && (hctx->response_header->ptr[i - 1] == '\r')) { in cgi_demux_response()
483 hctx->response_header->ptr[i] = '\0'; in cgi_demux_response()
484 hctx->response_header->used = i + 1; /* the string + \0 */ in cgi_demux_response()
487 cgi_response_parse(srv, con, p, hctx->response_header); in cgi_demux_response()
672 hctx->response_header->used) { in cgi_handle_fdevent()
674 http_chunk_append_mem(srv, con, hctx->response_header->ptr, hctx->response_header->used); in cgi_handle_fdevent()