public FastcgiServerClientRequestHandlerAsync(FastcgiServerClientHandlerAsync FastcgiServerClientHandlerAsync, Stream ClientStream, ushort RequestId)
{
this.FastcgiServerClientHandlerAsync = FastcgiServerClientHandlerAsync;
this.ClientStream = ClientStream;
this.RequestId = RequestId;
this.FastcgiRequestAsync = new FastcgiRequestAsync()
{
StdinStream = new FastcgiInputStream(),
};
this.FastcgiResponseAsync = new FastcgiResponseAsync()
{
StdoutStream = new FastcgiOutputStream(),
StderrStream = new FastcgiOutputStream(),
Headers = new FastcgiHeaders(),
};
this.FastcgiResponseAsync.StdoutWriter = new StreamWriter(this.FastcgiResponseAsync.StdoutStream);
this.FastcgiResponseAsync.StdoutWriter.AutoFlush = true;
this.FastcgiResponseAsync.StderrWriter = new StreamWriter(this.FastcgiResponseAsync.StderrStream);
this.FastcgiResponseAsync.StderrWriter.AutoFlush = true;
}