public BodyControl(IProtoBodyControlFeature bodyControl, IProtoResponseControl responseControl) { _requestReader = new ProtoRequestPipeReader(); _request = new ProtoRequestStream(bodyControl, _requestReader); _emptyRequestReader = new ProtoRequestPipeReader(); _emptyRequest = new ProtoRequestStream(bodyControl, _emptyRequestReader); _responseWriter = new ProtoResponsePipeWriter(responseControl); _response = new ProtoResponseStream(bodyControl, _responseWriter); _upgradeableResponse = new WrappingStream(_response); _upgradeStream = new ProtoUpgradeStream(_request, _response); }
public ProtoRequestStream(IProtoBodyControlFeature bodyControl, ProtoRequestPipeReader pipeReader) : base(pipeReader) { _bodyControl = bodyControl; _pipeReader = pipeReader; }
public ProtoResponseStream(IProtoBodyControlFeature bodyControl, ProtoResponsePipeWriter pipeWriter) : base(pipeWriter) { _bodyControl = bodyControl; _pipeWriter = pipeWriter; }