public Streams(IHttpBodyControlFeature bodyControl, IHttpResponseControl httpResponseControl) { _request = new HttpRequestStream(bodyControl); _emptyRequest = new HttpRequestStream(bodyControl); _response = new HttpResponseStream(bodyControl, httpResponseControl); _upgradeableResponse = new WrappingStream(_response); _upgradeStream = new HttpUpgradeStream(_request, _response); }
public Streams(bool AllowSynchronousIO, IHttpResponseControl httpResponseControl) { _request = new HttpRequestStream(AllowSynchronousIO); _emptyRequest = new HttpRequestStream(AllowSynchronousIO); _response = new HttpResponseStream(AllowSynchronousIO, httpResponseControl); _upgradeableResponse = new WrappingStream(_response); _upgradeStream = new HttpUpgradeStream(_request, _response); }
public BodyControl(IHttpBodyControlFeature bodyControl, IHttpResponseControl responseControl) { _requestReader = new HttpRequestPipeReader(); _request = new HttpRequestStream(bodyControl, _requestReader); _emptyRequestReader = new HttpRequestPipeReader(); _emptyRequest = new HttpRequestStream(bodyControl, _emptyRequestReader); _responseWriter = new HttpResponsePipeWriter(responseControl); _response = new HttpResponseStream(bodyControl, _responseWriter); _upgradeableResponse = new WrappingStream(_response); _upgradeStream = new HttpUpgradeStream(_request, _response); }
public HttpResponseStream(IHttpResponseControl httpResponseControl) { _httpResponseControl = httpResponseControl; _state = HttpStreamState.Closed; }
public HttpResponsePipeWriter(IHttpResponseControl pipeControl) { _pipeControl = pipeControl; _state = HttpStreamState.Closed; }
public HttpResponseStream(IHttpBodyControlFeature bodyControl, IHttpResponseControl httpResponseControl) { _bodyControl = bodyControl; _httpResponseControl = httpResponseControl; _state = HttpStreamState.Closed; }
public HttpResponseStream(bool allowSynchronousIO, IHttpResponseControl httpResponseControl) { _allowSynchronousIO = allowSynchronousIO; _httpResponseControl = httpResponseControl; _state = HttpStreamState.Closed; }
public HttpStreams(Stream request, IHttpResponseControl httpResponseControl) { _request = new HttpStreamRequestStream(request); _response = new HttpResponseStream(httpResponseControl); }