Beispiel #1
0
 public HttpConnection(IHttpApplication <TContext> application, IReadableChannel input, IWritableChannel output)
 {
     _application  = application;
     _input        = input;
     _output       = output;
     _requestBody  = new HttpRequestStream <TContext>(this);
     _responseBody = new HttpResponseStream <TContext>(this);
 }
 public HttpConnection(IHttpApplication<TContext> application, IReadableChannel input, IWritableChannel output)
 {
     _application = application;
     _input = input;
     _output = output;
     _requestBody = new HttpRequestStream<TContext>(this);
     _responseBody = new HttpResponseStream<TContext>(this);
     _outputFormatter = _output.GetFormatter(EncodingData.InvariantUtf8);
 }