6 writes to MaxRequestHeadersTotalSize
InMemory.FunctionalTests (1)
RequestHeaderLimitsTests.cs (1)
172options.Limits.MaxRequestHeadersTotalSize = maxRequestHeadersTotalSize.Value;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http1\Http1ConnectionTests.cs (1)
269options.Limits.MaxRequestHeadersTotalSize = headerLine1.Length;
KestrelServerLimitsTests.cs (2)
108var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().MaxRequestHeadersTotalSize = value); 118o.MaxRequestHeadersTotalSize = value;
KestrelServerTests.cs (1)
253MaxRequestHeadersTotalSize = maxRequestHeadersTotalSize
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
336options.Limits.MaxRequestHeadersTotalSize = (int)maxRequestBufferSize;
16 references to MaxRequestHeadersTotalSize
InMemory.FunctionalTests (1)
Http3\Http3ConnectionTests.cs (1)
376Assert.Equal(defaultLimits.MaxRequestHeadersTotalSize, kvp.Value);
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\Http1Connection.cs (1)
687_remainingRequestHeadersBytesAllowed = (long)ServerOptions.Limits.MaxRequestHeadersTotalSize + 2;
Internal\Http2\Http2Connection.cs (2)
185_serverSettings.MaxHeaderListSize = (uint)httpLimits.MaxRequestHeadersTotalSize; 1581if (_totalParsedHeaderSize > _context.ServiceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize * 2)
Internal\Http2\Http2Stream.cs (1)
221if (TotalParsedHeaderSize > ServerOptions.Limits.MaxRequestHeadersTotalSize)
Internal\Http3\Http3Connection.cs (1)
65_serverSettings.MaxRequestHeaderFieldSectionSize = (uint)httpLimits.MaxRequestHeadersTotalSize;
Internal\Http3\Http3Stream.cs (2)
289if (_totalParsedHeaderSize > ServerOptions.Limits.MaxRequestHeadersTotalSize * 2) 966if (_totalParsedHeaderSize > ServerOptions.Limits.MaxRequestHeadersTotalSize)
Internal\KestrelServerImpl.cs (2)
421Options.Limits.MaxRequestBufferSize < Options.Limits.MaxRequestHeadersTotalSize) 424CoreStrings.FormatMaxRequestBufferSmallerThanRequestHeaderBuffer(Options.Limits.MaxRequestBufferSize.Value, Options.Limits.MaxRequestHeadersTotalSize));
KestrelServerLimits.cs (2)
306writer.WritePropertyName(nameof(MaxRequestHeadersTotalSize)); 307writer.WriteNumberValue(MaxRequestHeadersTotalSize);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Http3\Http3FrameWriterTests.cs (1)
61settings.MaxRequestHeaderFieldSectionSize = (uint)kestrelLimits.MaxRequestHeadersTotalSize;
KestrelServerLimitsTests.cs (2)
99Assert.Equal(32 * 1024, (new KestrelServerLimits()).MaxRequestHeadersTotalSize); 119Assert.Equal(value, o.MaxRequestHeadersTotalSize);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
334maxRequestBufferSize.Value < options.Limits.MaxRequestHeadersTotalSize)