12 references to StreamResponseBodyFeature
Microsoft.AspNetCore.Http (1)
DefaultHttpContext.cs (1)
56
Features.Set<IHttpResponseBodyFeature>(new
StreamResponseBodyFeature
(Stream.Null));
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
751
features.Set<IHttpResponseBodyFeature>(new
StreamResponseBodyFeature
(Stream.Null));
Microsoft.AspNetCore.Http.Connections.Tests (1)
ServerSentEventsTests.cs (1)
138
public HttpBufferingFeature(Stream stream) :
base
(stream) { }
Microsoft.AspNetCore.Http.Tests (3)
DefaultHttpContextTests.cs (2)
155
features.Set<IHttpResponseBodyFeature>(new
StreamResponseBodyFeature
(Stream.Null));
175
newFeatures.Set<IHttpResponseBodyFeature>(new
StreamResponseBodyFeature
(Stream.Null));
Features\StreamResponseBodyFeatureTests.cs (1)
57
:
base
(stream)
Microsoft.AspNetCore.ResponseCompression.Tests (5)
ResponseCompressionBodyTest.cs (5)
21
var stream = new ResponseCompressionBody(httpContext, new MockResponseCompressionProvider(flushable: true), new
StreamResponseBodyFeature
(new MemoryStream()));
37
var stream = new ResponseCompressionBody(new DefaultHttpContext(), new MockResponseCompressionProvider(flushable), new
StreamResponseBodyFeature
(memoryStream));
53
var stream = new ResponseCompressionBody(new DefaultHttpContext(), new MockResponseCompressionProvider(flushable), new
StreamResponseBodyFeature
(memoryStream));
66
var stream = new ResponseCompressionBody(new DefaultHttpContext(), new MockResponseCompressionProvider(true), new
StreamResponseBodyFeature
(memoryStream));
85
var stream = new ResponseCompressionBody(new DefaultHttpContext(), new MockResponseCompressionProvider(flushable), new
StreamResponseBodyFeature
(memoryStream));
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
247
newFeatures.Set<IHttpResponseBodyFeature>(new
StreamResponseBodyFeature
(_responseReaderStream));