3 implementations of IHttpMaxRequestBodySizeFeature
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
34IHttpMaxRequestBodySizeFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
37IHttpMaxRequestBodySizeFeature,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
35IHttpMaxRequestBodySizeFeature,
38 references to IHttpMaxRequestBodySizeFeature
Binding.Http.IntegrationTests (1)
MtomBindingTestHelper.cs (1)
54context.Features.Get<IHttpMaxRequestBodySizeFeature>().MaxRequestBodySize = 5_368_709_120;
Microsoft.AspNetCore.Mvc.Core (10)
Filters\DisableRequestSizeLimitFilter.cs (5)
10/// A filter that sets <see cref="IHttpMaxRequestBodySizeFeature.MaxRequestBodySize"/> 26/// Sets the <see cref="IHttpMaxRequestBodySizeFeature.MaxRequestBodySize"/> 30/// <remarks>If <see cref="IHttpMaxRequestBodySizeFeature"/> is not enabled or is read-only, 43var maxRequestBodySizeFeature = context.HttpContext.Features.Get<IHttpMaxRequestBodySizeFeature>();
Filters\RequestSizeLimitFilter.cs (5)
11/// A filter that sets the <see cref="IHttpMaxRequestBodySizeFeature.MaxRequestBodySize"/> 29/// Sets the <see cref="IHttpMaxRequestBodySizeFeature.MaxRequestBodySize"/> to <see cref="Bytes"/>. 32/// <remarks>If <see cref="IHttpMaxRequestBodySizeFeature"/> is not enabled or is read-only, 45var maxRequestBodySizeFeature = context.HttpContext.Features.Get<IHttpMaxRequestBodySizeFeature>();
Microsoft.AspNetCore.RequestDecompression (1)
RequestDecompressionMiddleware.cs (1)
63?? context.Features.Get<IHttpMaxRequestBodySizeFeature>()?.MaxRequestBodySize;
Microsoft.AspNetCore.Routing (4)
EndpointRoutingMiddleware.cs (4)
354var maxRequestBodySizeFeature = context.Features.Get<IHttpMaxRequestBodySizeFeature>(); 412[LoggerMessage(9, LogLevel.Warning, $"A request body size limit could not be applied. This server does not support the {nameof(IHttpMaxRequestBodySizeFeature)}.", EventName = "RequestSizeFeatureNotFound")] 415[LoggerMessage(10, LogLevel.Warning, $"A request body size limit could not be applied. The {nameof(IHttpMaxRequestBodySizeFeature)} for the server is read-only.", EventName = "RequestSizeFeatureIsReadOnly")]
Microsoft.AspNetCore.Server.HttpSys (4)
HttpSysOptions.cs (1)
183/// This can be overridden per-request via <see cref="IHttpMaxRequestBodySizeFeature"/>.
RequestProcessing\RequestContext.FeatureCollection.cs (2)
589bool IHttpMaxRequestBodySizeFeature.IsReadOnly => Request.HasRequestBodyStarted; 591long? IHttpMaxRequestBodySizeFeature.MaxRequestBodySize
StandardFeatureCollection.cs (1)
26{ typeof(IHttpMaxRequestBodySizeFeature), _identityFunc },
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.FeatureCollection.cs (2)
439bool IHttpMaxRequestBodySizeFeature.IsReadOnly => HasStartedConsumingRequestBody || _wasUpgraded; 441long? IHttpMaxRequestBodySizeFeature.MaxRequestBodySize
Core\IISHttpContext.Features.cs (1)
29private static readonly Type IHttpMaxRequestBodySizeFeature = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpMaxRequestBodySizeFeature);
IISServerOptions.cs (1)
62/// This can be overridden per-request via <see cref="IHttpMaxRequestBodySizeFeature"/>.
Microsoft.AspNetCore.Server.IISIntegration (2)
IISMiddleware.cs (2)
128var bodySizeFeature = httpContext.Features.Get<IHttpMaxRequestBodySizeFeature>();
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Internal\Http\HttpProtocol.FeatureCollection.cs (2)
198bool IHttpMaxRequestBodySizeFeature.IsReadOnly => HasStartedConsumingRequestBody || IsUpgraded || IsExtendedConnectRequest; 200long? IHttpMaxRequestBodySizeFeature.MaxRequestBodySize
Internal\Http\HttpProtocol.Generated.cs (9)
54internal protected IHttpMaxRequestBodySizeFeature? _currentIHttpMaxRequestBodySizeFeature; 304else if (key == typeof(IHttpMaxRequestBodySizeFeature)) 456else if (key == typeof(IHttpMaxRequestBodySizeFeature)) 458_currentIHttpMaxRequestBodySizeFeature = (IHttpMaxRequestBodySizeFeature?)value; 610else if (typeof(TFeature) == typeof(IHttpMaxRequestBodySizeFeature)) 612feature = Unsafe.As<IHttpMaxRequestBodySizeFeature?, TFeature?>(ref _currentIHttpMaxRequestBodySizeFeature); 770else if (typeof(TFeature) == typeof(IHttpMaxRequestBodySizeFeature)) 772_currentIHttpMaxRequestBodySizeFeature = Unsafe.As<TFeature?, IHttpMaxRequestBodySizeFeature?>(ref feature); 920yield return new KeyValuePair<Type, object>(typeof(IHttpMaxRequestBodySizeFeature), _currentIHttpMaxRequestBodySizeFeature);
KestrelServerLimits.cs (1)
152/// This can be overridden per-request via <see cref="IHttpMaxRequestBodySizeFeature"/>.