setHeader("Connection", request.isKeepAlive() ? "keep-alive"
: "close");
bufferedOutput = new NetBufferedOutputStream(request.session,
bufferSize, request.isKeepAlive());
out = request.isChunked() ? new ChunkedOutputStream(bufferSize,
bufferedOutput, request, this) : new HttpServerOutpuStream(
bufferSize, bufferedOutput, request, this);
fileOut = new StaticFileOutputStream(bufferSize, bufferedOutput,
request, this);
writer = new PrintWriter(out);
}