4 implementations of IHttpBodyControlFeature
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
33IHttpBodyControlFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
34IHttpBodyControlFeature,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
34IHttpBodyControlFeature,
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
10internal sealed class HttpContextBuilder : IHttpBodyControlFeature, IHttpResetFeature
134 references to IHttpBodyControlFeature
IIS.Tests (2)
HttpBodyControlFeatureTests.cs (2)
25var bodyControl = ctx.Features.Get<IHttpBodyControlFeature>();
InMemory.FunctionalTests (20)
Http2\Http2ConnectionTests.cs (2)
4762var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>();
Http2\Http2StreamTests.cs (2)
3485var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>();
RequestTests.cs (8)
1688var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>(); 1739var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>(); 1787var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>(); 1832var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>();
ResponseTests.cs (8)
3418var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>(); 3448var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>(); 3479var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>(); 3514var bodyControlFeature = context.Features.Get<IHttpBodyControlFeature>();
Microsoft.AspNetCore.OutputCaching.Tests (2)
TestUtils.cs (2)
71var feature = context.Features.Get<IHttpBodyControlFeature>();
Microsoft.AspNetCore.ResponseCaching.Tests (2)
TestUtils.cs (2)
96var feature = context.Features.Get<IHttpBodyControlFeature>();
Microsoft.AspNetCore.ResponseCompression.Tests (4)
ResponseCompressionMiddlewareTest.cs (4)
729var feature = context.Features.Get<IHttpBodyControlFeature>(); 852var feature = context.Features.Get<IHttpBodyControlFeature>();
Microsoft.AspNetCore.Rewrite (2)
UrlActions\CustomResponseAction.cs (2)
34var feature = context.HttpContext.Features.Get<IHttpBodyControlFeature>();
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
579bool IHttpBodyControlFeature.AllowSynchronousIO
StandardFeatureCollection.cs (1)
27{ typeof(IHttpBodyControlFeature), _identityFunc },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (16)
RequestBodyLimitTests.cs (5)
25httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 92httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 159httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 235httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 312httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true;
RequestBodyTests.cs (4)
31httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 51httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 127httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 151httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true;
ResponseBodyTests.cs (6)
114httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 143httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 170httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 214httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 288httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true; 322httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true;
ResponseHeaderTests.cs (1)
219httpContext.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true;
Microsoft.AspNetCore.Server.IIS (9)
Core\EmptyStream.cs (2)
11private readonly IHttpBodyControlFeature _bodyControl; 15public EmptyStream(IHttpBodyControlFeature bodyControl)
Core\HttpRequestStream.cs (2)
13private readonly IHttpBodyControlFeature _bodyControl; 18public HttpRequestStream(IHttpBodyControlFeature bodyControl)
Core\HttpResponseStream.cs (2)
10private readonly IHttpBodyControlFeature _bodyControl; 14public HttpResponseStream(IHttpBodyControlFeature bodyControl, IISHttpContext context)
Core\IISHttpContext.cs (1)
89((IHttpBodyControlFeature)this).AllowSynchronousIO = _options.AllowSynchronousIO;
Core\IISHttpContext.FeatureCollection.cs (1)
428bool IHttpBodyControlFeature.AllowSynchronousIO { get; set; }
Core\IISHttpContext.Features.cs (1)
26private static readonly Type IHttpBodyControlFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpBodyControlFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
192bool IHttpBodyControlFeature.AllowSynchronousIO
Internal\Http\HttpProtocol.Generated.cs (9)
53internal protected IHttpBodyControlFeature? _currentIHttpBodyControlFeature; 316else if (key == typeof(IHttpBodyControlFeature)) 468else if (key == typeof(IHttpBodyControlFeature)) 470_currentIHttpBodyControlFeature = (IHttpBodyControlFeature?)value; 622else if (typeof(TFeature) == typeof(IHttpBodyControlFeature)) 624feature = Unsafe.As<IHttpBodyControlFeature?, TFeature?>(ref _currentIHttpBodyControlFeature); 782else if (typeof(TFeature) == typeof(IHttpBodyControlFeature)) 784_currentIHttpBodyControlFeature = Unsafe.As<TFeature?, IHttpBodyControlFeature?>(ref feature); 932yield return new KeyValuePair<Type, object>(typeof(IHttpBodyControlFeature), _currentIHttpBodyControlFeature);
Internal\Http\HttpRequestStream.cs (2)
14private readonly IHttpBodyControlFeature _bodyControl; 16public HttpRequestStream(IHttpBodyControlFeature bodyControl, HttpRequestPipeReader pipeReader)
Internal\Http\HttpResponseStream.cs (2)
12private readonly IHttpBodyControlFeature _bodyControl; 14public HttpResponseStream(IHttpBodyControlFeature bodyControl, HttpResponsePipeWriter pipeWriter)
Internal\Infrastructure\BodyControl.cs (1)
26public BodyControl(IHttpBodyControlFeature bodyControl, IHttpResponseControl responseControl)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (56)
BodyControlTests.cs (6)
21var bodyControl = new BodyControl(Mock.Of<IHttpBodyControlFeature>(), Mock.Of<IHttpResponseControl>()); 37var bodyControl = new BodyControl(Mock.Of<IHttpBodyControlFeature>(), Mock.Of<IHttpResponseControl>()); 62var bodyControl = new BodyControl(Mock.Of<IHttpBodyControlFeature>(), Mock.Of<IHttpResponseControl>()); 87var bodyControl = new BodyControl(Mock.Of<IHttpBodyControlFeature>(), Mock.Of<IHttpResponseControl>()); 109var bodyControl = new BodyControl(Mock.Of<IHttpBodyControlFeature>(), Mock.Of<IHttpResponseControl>()); 126var bodyControl = new BodyControl(Mock.Of<IHttpBodyControlFeature>(), Mock.Of<IHttpResponseControl>());
Http1\Http1HttpProtocolFeatureCollectionTests.cs (4)
116_collection[typeof(IHttpBodyControlFeature)] = CreateHttp1Connection(); 146_collection.Set<IHttpBodyControlFeature>(CreateHttp1Connection()); 193Assert.Same(_collection.Get<IHttpBodyControlFeature>(), _collection[typeof(IHttpBodyControlFeature)]);
HttpRequestStreamTests.cs (21)
21var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 28var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 35var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 42var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 49var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 56var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 63var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 71var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 78var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 85var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 93var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 100var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader()); 109var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 135var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), pipeReader); 146var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), pipeReader); 158var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), pipeReader); 170var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), pipeReader); 180var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), pipeReader); 192var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), pipeReader); 203var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), pipeReader); 212var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), new HttpRequestPipeReader());
HttpResponseStreamTests.cs (3)
100var stream = new HttpResponseStream(Mock.Of<IHttpBodyControlFeature>(), pipeWriter); 111var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 134return new HttpResponseStream(Mock.Of<IHttpBodyControlFeature>(), pipeWriter);
MessageBodyTests.cs (22)
34var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 163var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 187var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 216var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 241var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 269var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 311var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 338var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 372var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 394var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 420var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 450var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 476var mockBodyControl = new Mock<IHttpBodyControlFeature>(); 501var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 520var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 598var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 660var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 687var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 709var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 799var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 830var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader); 867var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>(), reader);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
201public IHttpBodyControlFeature Get_IHttpBodyControlFeature() 203return _collection.Get<IHttpBodyControlFeature>();
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
51_httpContext.Features.Set<IHttpBodyControlFeature>(this);
Microsoft.AspNetCore.TestHost.Tests (1)
HttpContextBuilderTests.cs (1)
127c.Features.Get<IHttpBodyControlFeature>().AllowSynchronousIO = true;