58 references to Stream
InMemory.FunctionalTests (58)
BadHttpRequestTests.cs (3)
266
await client.
Stream
.WriteAsync(Core.Internal.Http2.Http2Connection.ClientPreface.ToArray()).DefaultTimeout();
268
var data = await client.
Stream
.ReadAtLeastLengthAsync(17);
271
Assert.Empty(await client.
Stream
.ReadUntilEndAsync().DefaultTimeout());
EventSourceTests.cs (2)
176
return new ValueTask<Stream>(connection.
Stream
);
289
await using var sslStream = new SslStream(connection.
Stream
);
Http2\Http2EndToEndTests.cs (1)
59
return new ValueTask<Stream>(connection.
Stream
);
Http2\TlsTests.cs (1)
63
var sslStream = new SslStream(connection.
Stream
);
HttpsConnectionMiddlewareTests.cs (29)
293
var stream = OpenSslStream(connection.
Stream
);
323
var stream = OpenSslStream(connection.
Stream
);
356
var stream = OpenSslStream(connection.
Stream
);
391
var stream = OpenSslStream(connection.
Stream
);
398
var stream = OpenSslStream(connection.
Stream
);
426
var stream = OpenSslStream(connection.
Stream
);
460
var stream = OpenSslStream(connection.
Stream
);
488
var stream = OpenSslStream(connection.
Stream
);
529
var stream = OpenSslStreamWithCert(connection.
Stream
);
570
var stream = OpenSslStreamWithCert(connection.
Stream
);
614
var stream = OpenSslStreamWithCert(connection.
Stream
);
657
var stream = OpenSslStreamWithCert(connection.
Stream
);
698
var stream = OpenSslStreamWithCert(connection.
Stream
);
746
var stream = OpenSslStreamWithCert(connection.
Stream
);
788
var stream = new SslStream(connection.
Stream
);
852
var stream = OpenSslStreamWithCert(connection.
Stream
, clientCertificate);
913
var stream = OpenSslStreamWithCert(connection.
Stream
);
936
var stream = OpenSslStream(connection.
Stream
);
969
var stream = OpenSslStream(connection.
Stream
);
1002
var stream = OpenSslStream(connection.
Stream
);
1054
var stream = OpenSslStreamWithCert(connection.
Stream
);
1099
var stream = OpenSslStreamWithCert(connection.
Stream
);
1152
var stream = OpenSslStreamWithCert(connection.
Stream
);
1187
var stream = OpenSslStreamWithCert(connection.
Stream
);
1214
var stream = OpenSslStreamWithCert(connection.
Stream
);
1239
var stream = OpenSslStreamWithCert(connection.
Stream
);
1264
var stream = OpenSslStreamWithCert(connection.
Stream
);
1298
var stream = OpenSslStreamWithCert(connection.
Stream
);
1403
using var stream = OpenSslStream(connection.
Stream
);
HttpsTests.cs (10)
92
using (var sslStream = new SslStream(connection.
Stream
, true, (sender, certificate, chain, errors) => true))
213
await connection.
Stream
.WriteAsync(new byte[10], 0, 10);
255
using (var sslStream = new SslStream(connection.
Stream
, true, (sender, certificate, chain, errors) => true))
299
using (var sslStream = new SslStream(connection.
Stream
, true, (sender, certificate, chain, errors) => true))
330
using (var sslStream = new SslStream(connection.
Stream
, true, (sender, certificate, chain, errors) => true))
383
Assert.Equal(0, await connection.
Stream
.ReadAsync(new byte[1], 0, 1).DefaultTimeout());
417
Assert.Equal(0, await connection.
Stream
.ReadAsync(new byte[1], 0, 1).DefaultTimeout());
694
using (var sslStream = new SslStream(connection.
Stream
, true, (sender, certificate, chain, errors) => true))
735
using (var sslStream = new SslStream(connection.
Stream
, true, (sender, certificate, chain, errors) => true))
774
using (var sslStream = new SslStream(connection.
Stream
, true, (sender, certificate, chain, errors) => true))
KestrelMetricsTests.cs (5)
559
return new ValueTask<Stream>(connection.
Stream
);
638
return new ValueTask<Stream>(connection.
Stream
);
712
return new ValueTask<Stream>(connection.
Stream
);
791
return new ValueTask<Stream>(connection.
Stream
);
881
return new ValueTask<Stream>(connection.
Stream
);
RequestTests.cs (4)
2270
await connection.
Stream
.WriteAsync(new byte[] { 0x16, 0x03, 0x01, 0x02, 0x00, 0x01, 0x00, 0xfc, 0x03, 0x03, 0x03, 0xca, 0xe0, 0xfd, 0x0a }).DefaultTimeout();
2305
await connection.
Stream
.WriteAsync(Encoding.UTF32.GetBytes("£")).DefaultTimeout();
2353
var writer = new StreamWriter(client.
Stream
, Encoding.GetEncoding("iso-8859-1"));
2356
await client.
Stream
.FlushAsync().ConfigureAwait(false);
ResponseTests.cs (1)
4710
using (var reader = new StreamReader(connection.
Stream
, Encoding.ASCII, detectEncodingFromByteOrderMarks: true, bufferSize: 1024, leaveOpen: true))
TestTransport\InMemoryHttpClientSlim.cs (2)
35
using (var stream = await GetStream(connection.
Stream
, requestUri, validateCertificate).ConfigureAwait(false))
74
using (var stream = await GetStream(connection.
Stream
, requestUri, validateCertificate).ConfigureAwait(false))