3 implementations of IHttpMinRequestBodyDataRateFeature
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\Http1Connection.FeatureCollection.cs (1)
10internal partial class Http1Connection : IHttpMinRequestBodyDataRateFeature,
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
14IHttpMinRequestBodyDataRateFeature,
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
14IHttpMinRequestBodyDataRateFeature,
30 references to IHttpMinRequestBodyDataRateFeature
InMemory.FunctionalTests (6)
Http2\Http2TimeoutTests.cs (1)
871context.Features.Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate = null;
Http3\Http3TimeoutTests.cs (1)
699context.Features.Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate = null;
RequestBodyTimeoutTests.cs (3)
32context.Features.Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate = 116context.Features.Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate = null; 163context.Features.Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate =
RequestTests.cs (1)
1634context.Features.Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate =
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Internal\Http\Http1Connection.FeatureCollection.cs (1)
19MinDataRate? IHttpMinRequestBodyDataRateFeature.MinDataRate
Internal\Http\HttpProtocol.Generated.cs (9)
74internal protected IHttpMinRequestBodyDataRateFeature? _currentIHttpMinRequestBodyDataRateFeature; 308else if (key == typeof(IHttpMinRequestBodyDataRateFeature)) 460else if (key == typeof(IHttpMinRequestBodyDataRateFeature)) 462_currentIHttpMinRequestBodyDataRateFeature = (IHttpMinRequestBodyDataRateFeature?)value; 614else if (typeof(TFeature) == typeof(IHttpMinRequestBodyDataRateFeature)) 616feature = Unsafe.As<IHttpMinRequestBodyDataRateFeature?, TFeature?>(ref _currentIHttpMinRequestBodyDataRateFeature); 774else if (typeof(TFeature) == typeof(IHttpMinRequestBodyDataRateFeature)) 776_currentIHttpMinRequestBodyDataRateFeature = Unsafe.As<TFeature?, IHttpMinRequestBodyDataRateFeature?>(ref feature); 924yield return new KeyValuePair<Type, object>(typeof(IHttpMinRequestBodyDataRateFeature), _currentIHttpMinRequestBodyDataRateFeature);
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
48MinDataRate? IHttpMinRequestBodyDataRateFeature.MinDataRate
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
41MinDataRate? IHttpMinRequestBodyDataRateFeature.MinDataRate
KestrelServerLimits.cs (1)
353/// This can be overridden per-request via <see cref="IHttpMinRequestBodyDataRateFeature"/>.
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
Http1\Http1ConnectionTests.cs (1)
332((IFeatureCollection)_http1Connection).Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate = minDataRate;
Http1\Http1HttpProtocolFeatureCollectionTests.cs (4)
114_collection[typeof(IHttpMinRequestBodyDataRateFeature)] = CreateHttp1Connection(); 144_collection.Set<IHttpMinRequestBodyDataRateFeature>(CreateHttp1Connection()); 191Assert.Same(_collection.Get<IHttpMinRequestBodyDataRateFeature>(), _collection[typeof(IHttpMinRequestBodyDataRateFeature)]);
Http2\Http2HttpProtocolFeatureCollectionTests.cs (2)
50var minRateFeature = _http2Collection.Get<IHttpMinRequestBodyDataRateFeature>();
Http3\Http3HttpProtocolFeatureCollectionTests.cs (2)
50var minRateFeature = _http3Collection.Get<IHttpMinRequestBodyDataRateFeature>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
187public IHttpMinRequestBodyDataRateFeature Get_IHttpMinRequestBodyDataRateFeature() 189return _collection.Get<IHttpMinRequestBodyDataRateFeature>();