1 implementation of IHttpMinResponseDataRateFeature
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1Connection.FeatureCollection.cs (1)
11IHttpMinResponseDataRateFeature,
26 references to IHttpMinResponseDataRateFeature
InMemory.FunctionalTests (1)
ResponseDrainingTests.cs (1)
30context.Features.Get<IHttpMinResponseDataRateFeature>().MinDataRate = minRate;
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Internal\Http\Http1Connection.FeatureCollection.cs (1)
25MinDataRate? IHttpMinResponseDataRateFeature.MinDataRate
Internal\Http\Http1OutputProducer.cs (2)
31private readonly IHttpMinResponseDataRateFeature _minResponseDataRateFeature; 78IHttpMinResponseDataRateFeature minResponseDataRateFeature,
Internal\Http\HttpProtocol.Generated.cs (9)
75internal protected IHttpMinResponseDataRateFeature? _currentIHttpMinResponseDataRateFeature; 312else if (key == typeof(IHttpMinResponseDataRateFeature)) 464else if (key == typeof(IHttpMinResponseDataRateFeature)) 466_currentIHttpMinResponseDataRateFeature = (IHttpMinResponseDataRateFeature?)value; 618else if (typeof(TFeature) == typeof(IHttpMinResponseDataRateFeature)) 620feature = Unsafe.As<IHttpMinResponseDataRateFeature?, TFeature?>(ref _currentIHttpMinResponseDataRateFeature); 778else if (typeof(TFeature) == typeof(IHttpMinResponseDataRateFeature)) 780_currentIHttpMinResponseDataRateFeature = Unsafe.As<TFeature?, IHttpMinResponseDataRateFeature?>(ref feature); 928yield return new KeyValuePair<Type, object>(typeof(IHttpMinResponseDataRateFeature), _currentIHttpMinResponseDataRateFeature);
KestrelServerLimits.cs (1)
366/// This can be overridden per-request via <see cref="IHttpMinResponseDataRateFeature"/>.
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
Http1\Http1ConnectionTests.cs (1)
341((IFeatureCollection)_http1Connection).Get<IHttpMinResponseDataRateFeature>().MinDataRate = minDataRate;
Http1\Http1HttpProtocolFeatureCollectionTests.cs (5)
115_collection[typeof(IHttpMinResponseDataRateFeature)] = CreateHttp1Connection(); 145_collection.Set<IHttpMinResponseDataRateFeature>(CreateHttp1Connection()); 164Assert.NotNull(_collection.Get<IHttpMinResponseDataRateFeature>()); 192Assert.Same(_collection.Get<IHttpMinResponseDataRateFeature>(), _collection[typeof(IHttpMinResponseDataRateFeature)]);
Http1\Http1OutputProducerTests.cs (2)
240Mock.Of<IHttpMinResponseDataRateFeature>(), 254public TestHttpOutputProducer(Pipe pipe, string connectionId, ConnectionContext connectionContext, MemoryPool<byte> memoryPool, KestrelTrace log, ITimeoutControl timeoutControl, IHttpMinResponseDataRateFeature minResponseDataRateFeature, ConnectionMetricsContext metricsContext, IHttpOutputAborter outputAborter)
Http2\Http2HttpProtocolFeatureCollectionTests.cs (1)
35Assert.Null(_http2Collection.Get<IHttpMinResponseDataRateFeature>());
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
35Assert.Null(_http3Collection.Get<IHttpMinResponseDataRateFeature>());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
194public IHttpMinResponseDataRateFeature Get_IHttpMinResponseDataRateFeature() 196return _collection.Get<IHttpMinResponseDataRateFeature>();