internal void SetContentType(string contentType) { if (contentType == FramingUpgradeString.SslOrTls) { _inputLengthDecider = new TlsInputLengthDecider(); } else if (contentType == FramingUpgradeString.Negotiate) { _inputLengthDecider = new NegotiateInputLengthDecider(); } else { _inputLengthDecider = NoopInputLengthDecider.Instance; } }
public DuplexPipeStream(PipeReader input, PipeWriter output) { _input = input; _output = output; _inputLengthDecider = NoopInputLengthDecider.Instance; }