30 writes to MaxRequestBodySize
Binding.Http.IntegrationTests (1)
MtomBindingTestHelper.cs (1)
47serverOptions.Limits.MaxRequestBodySize = 5_368_709_120;
InMemory.FunctionalTests (24)
Http2\Http2StreamTests.cs (6)
1856_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 1897_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 1943_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 1983_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2035_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 20; 2095_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10;
Http2\Http2WebSocketTests.cs (1)
391limits.MaxRequestBodySize = 5;
Http3\Http3StreamTests.cs (6)
2514_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 2548_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2588_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 2621_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2665_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 20; 2717_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10;
MaxRequestBodySizeTests.cs (11)
41new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 88new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } })) 135new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } })) 184new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 228new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 252new TestServiceContext { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 384new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 437new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 483new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 546new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 597new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } }))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
279MaxRequestBodySize = value 290var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().MaxRequestBodySize = value);
Sockets.FunctionalTests (3)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
335options.Limits.MaxRequestBodySize = _dataLength;
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
80options.Limits.MaxRequestBodySize = contentLength;
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
771MaxRequestBodySize = responseSize
11 references to MaxRequestBodySize
InMemory.FunctionalTests (5)
Http2\Http2WebSocketTests.cs (2)
403Assert.Equal(_serviceContext.ServerOptions.Limits.MaxRequestBodySize + 1, memoryStream.Length); 421await SendDataAsync(1, new byte[(int)limits.MaxRequestBodySize + 1], endStream: true);
MaxRequestBodySizeTests.cs (3)
294Assert.Equal(new KestrelServerLimits().MaxRequestBodySize, feature.MaxRequestBodySize); 334Assert.Equal(new KestrelServerLimits().MaxRequestBodySize, feature.MaxRequestBodySize); 391"Content-Length: " + (new KestrelServerLimits().MaxRequestBodySize + 1),
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpProtocol.cs (1)
356MaxRequestBodySize = ServerOptions.Limits.MaxRequestBodySize;
KestrelServerLimits.cs (3)
283writer.WritePropertyName(nameof(MaxRequestBodySize)); 284if (MaxRequestBodySize is null) 290writer.WriteNumberValue(MaxRequestBodySize.Value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
267Assert.Equal(30000000, new KestrelServerLimits().MaxRequestBodySize); 282Assert.Equal(value, limits.MaxRequestBodySize);