6 writes to MaxRequestLineSize
InMemory.FunctionalTests (1)
MaxRequestLineSizeTests.cs (1)
92MaxRequestLineSize = maxRequestLineSize
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
KestrelServerLimitsTests.cs (2)
82(new KestrelServerLimits()).MaxRequestLineSize = value; 92o.MaxRequestLineSize = value;
KestrelServerTests.cs (2)
226MaxRequestLineSize = maxRequestLineSize 252MaxRequestLineSize = (int)maxRequestBufferSize,
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
330options.Limits.MaxRequestLineSize = (int)maxRequestBufferSize;
14 references to MaxRequestLineSize
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\Http1Connection.cs (2)
215if (reader.Remaining >= ServerOptions.Limits.MaxRequestLineSize) 225var trimmedBuffer = reader.Sequence.Slice(reader.Position, ServerOptions.Limits.MaxRequestLineSize);
Internal\Http2\Http2Connection.cs (3)
637var reader = new SequenceReader<byte>(buffer.Length > Limits.MaxRequestLineSize ? buffer.Slice(0, Limits.MaxRequestLineSize) : buffer); 650if (buffer.Length > Limits.MaxRequestLineSize)
Internal\Http2\Http2Stream.cs (1)
334if (requestLineLength > ServerOptions.Limits.MaxRequestLineSize)
Internal\Http3\Http3Stream.cs (1)
1055if (requestLineLength > ServerOptions.Limits.MaxRequestLineSize)
Internal\KestrelServerImpl.cs (2)
414Options.Limits.MaxRequestBufferSize < Options.Limits.MaxRequestLineSize) 417CoreStrings.FormatMaxRequestBufferSmallerThanRequestLineBuffer(Options.Limits.MaxRequestBufferSize.Value, Options.Limits.MaxRequestLineSize));
KestrelServerLimits.cs (2)
309writer.WritePropertyName(nameof(MaxRequestLineSize)); 310writer.WriteNumberValue(MaxRequestLineSize);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
71Assert.Equal(8 * 1024, (new KestrelServerLimits()).MaxRequestLineSize); 93Assert.Equal(value, o.MaxRequestLineSize);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
328maxRequestBufferSize.Value < options.Limits.MaxRequestLineSize)