Lines Matching refs:response
81 buffer *response; member
90 hctx->response = buffer_init(); in cgi_handler_ctx_init()
97 buffer_free(hctx->response); in cgi_handler_ctx_free()
285 if (NULL == (ds = (data_string *)array_get_unused_element(con->response.headers, TYPE_STRING))) { in cgi_response_parse()
291 array_insert_unique(con->response.headers, (data_unset *)ds); in cgi_response_parse()
312 con->response.keep_alive = (0 == strcasecmp(value, "Keep-Alive")) ? 1 : 0; in cgi_response_parse()
318 con->response.content_length = strtol(value, NULL, 10); in cgi_response_parse()
347 buffer_prepare_copy(hctx->response, 4 * 1024); in cgi_demux_response()
350 buffer_prepare_copy(hctx->response, 4 * 1024); in cgi_demux_response()
353 buffer_prepare_copy(hctx->response, toread + 1); in cgi_demux_response()
357 if (-1 == (n = read(hctx->fd, hctx->response->ptr, hctx->response->size - 1))) { in cgi_demux_response()
379 hctx->response->ptr[n] = '\0'; in cgi_demux_response()
380 hctx->response->used = n+1; in cgi_demux_response()
390 buffer_append_string_buffer(hctx->response_header, hctx->response); in cgi_demux_response()
458 con->response.transfer_encoding = HTTP_TRANSFER_ENCODING_CHUNKED; in cgi_demux_response()
492 con->response.transfer_encoding = HTTP_TRANSFER_ENCODING_CHUNKED; in cgi_demux_response()
504 http_chunk_append_mem(srv, con, hctx->response->ptr, hctx->response->used); in cgi_demux_response()