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