54 writes to ServerOptions
InMemory.FunctionalTests (38)
BadHttpRequestTests.cs (1)
173ServerOptions = new KestrelServerOptions()
DefaultHeaderTests.cs (1)
18ServerOptions = { AddServerHeader = true }
HttpsTests.cs (6)
440testContext.ServerOptions = serverOptions; 480testContext.ServerOptions = serverOptions; 525testContext.ServerOptions = serverOptions; 559testContext.ServerOptions = serverOptions; 596testContext.ServerOptions = serverOptions; 642testContext.ServerOptions = serverOptions;
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 } } }))
MaxRequestLineSizeTests.cs (1)
87ServerOptions = new KestrelServerOptions
RequestHeaderLimitsTests.cs (1)
178ServerOptions = options
RequestTests.cs (2)
1782ServerOptions = { AllowSynchronousIO = false } 1827ServerOptions = { AllowSynchronousIO = true }
ResponseTests.cs (13)
954ServerOptions = { AllowSynchronousIO = true } 1034ServerOptions = { AllowSynchronousIO = true } 1499var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1532var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1563var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1599var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1643var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1897var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1939var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1981var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 2026var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 3662ServerOptions = { AllowSynchronousIO = true } 3697ServerOptions = { AllowSynchronousIO = false }
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41ServerOptions = serverOptions,
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
107ServerOptions = serverOptions,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http1\Http1ConnectionTests.cs (1)
274_serviceContext.ServerOptions = options;
KestrelServerTests.cs (1)
720ServerOptions =
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41ServerOptions = serverOptions,
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41ServerOptions = serverOptions,
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
Sockets.FunctionalTests (9)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
1035ServerOptions =
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (7)
286ServerOptions = 508ServerOptions = 642ServerOptions = 763ServerOptions = 862ServerOptions = 939ServerOptions = 1026ServerOptions =
195 references to ServerOptions
InMemory.FunctionalTests (152)
ChunkedRequestTests.cs (2)
555testContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = 602testContext.ServerOptions.Limits.MaxRequestHeaderCount = 2;
ConnectionLimitTests.cs (1)
229serviceContext.ServerOptions.Limits.MaxConcurrentConnections = max;
Http2\Http2ConnectionTests.cs (26)
655_serviceContext.ServerOptions.Limits.MinRequestBodyDataRate = null; 748_serviceContext.ServerOptions.Limits.Http2.MaxFrameSize = length; 835var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 837var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 937var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 939var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1068var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1069var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1288var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1358var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1398_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 128 * 1024; 1399_serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize = 96 * 1024; 1401var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1403var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1649_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1684_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1697_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 100; 1710_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = int.MaxValue; 1723_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1802_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = maxStreamsPerConnection; 1863var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1887var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 2425_serviceContext.ServerOptions.Limits.Http2.HeaderTableSize = 0; 2555_serviceContext.ServerOptions.AllowResponseHeaderCompression = false; 3539var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 4161_serviceContext.ServerOptions.Limits.Http2.HeaderTableSize = 40000;
Http2\Http2KeepAliveTests.cs (17)
14_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = Timeout.InfiniteTimeSpan; 27_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 28_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = Timeout.InfiniteTimeSpan; 57_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 79_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 102_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(5); 119_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 142_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 180_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 181_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = TimeSpan.FromSeconds(3); 212_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 213_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = TimeSpan.FromSeconds(3); 244_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 268_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 271_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 65535; 322_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 325_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 65535;
Http2\Http2StreamTests.cs (17)
475_serviceContext.ServerOptions.AllowAlternateSchemes = true; 512_serviceContext.ServerOptions.AllowAlternateSchemes = true; 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; 2180_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 2181_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 2225_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 2506_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 2507_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 2560_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 3651_serviceContext.ServerOptions.Limits.Http2.MaxFrameSize = 17001; 5798_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.Latin1; 5843_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => encoding;
Http2\Http2TestBase.cs (4)
441_decodedHeaders[nameStr] = value.GetRequestHeaderString(nameStr, _serviceContext.ServerOptions.RequestHeaderEncodingSelector, checkForNewlineChars: true); 1411pauseWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 1412resumeWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 1430var bufferSize = serviceContext.ServerOptions.Limits.MaxResponseBufferSize;
Http2\Http2TimeoutTests.cs (19)
19var limits = _serviceContext.ServerOptions.Limits; 41var limits = _serviceContext.ServerOptions.Limits; 61var limits = _serviceContext.ServerOptions.Limits; 110var limits = _serviceContext.ServerOptions.Limits; 133var limits = _serviceContext.ServerOptions.Limits; 175var limits = _serviceContext.ServerOptions.Limits; 210var limits = _serviceContext.ServerOptions.Limits; 351var limits = _serviceContext.ServerOptions.Limits; 404var limits = _serviceContext.ServerOptions.Limits; 459var limits = _serviceContext.ServerOptions.Limits; 511var limits = _serviceContext.ServerOptions.Limits; 565var limits = _serviceContext.ServerOptions.Limits; 631var limits = _serviceContext.ServerOptions.Limits; 678var limits = _serviceContext.ServerOptions.Limits; 729var limits = _serviceContext.ServerOptions.Limits; 796var limits = _serviceContext.ServerOptions.Limits; 864var limits = _serviceContext.ServerOptions.Limits; 916var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 921var limits = _serviceContext.ServerOptions.Limits;
Http2\Http2WebSocketTests.cs (3)
325var limits = _serviceContext.ServerOptions.Limits; 387var limits = _serviceContext.ServerOptions.Limits; 403Assert.Equal(_serviceContext.ServerOptions.Limits.MaxRequestBodySize + 1, memoryStream.Length);
Http3\Http3StreamTests.cs (20)
297_serviceContext.ServerOptions.AllowAlternateSchemes = true; 322_serviceContext.ServerOptions.AllowAlternateSchemes = true; 891_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 892_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 929_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 1040_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 1041_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 1080_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 1955Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled; 2095Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled; 2378var limit = _serviceContext.ServerOptions.Limits.Http3.MaxRequestHeaderFieldSize; 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; 3073_serviceContext.ServerOptions.Limits.MaxRequestBufferSize = 100; 3138_serviceContext.ServerOptions.Limits.MaxRequestBufferSize = 1; 3222_serviceContext.ServerOptions.Limits.MaxRequestBufferSize = 1;
Http3\Http3TimeoutTests.cs (22)
21var limits = _serviceContext.ServerOptions.Limits; 37var limits = _serviceContext.ServerOptions.Limits; 61var limits = _serviceContext.ServerOptions.Limits; 90var limits = _serviceContext.ServerOptions.Limits; 131var limits = _serviceContext.ServerOptions.Limits; 162Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled; 165var limits = _serviceContext.ServerOptions.Limits; 215Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; 219var limits = _serviceContext.ServerOptions.Limits; 242Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = false; 247var limits = _serviceContext.ServerOptions.Limits; 283var limits = _serviceContext.ServerOptions.Limits; 305Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamEnabled; 308var limits = _serviceContext.ServerOptions.Limits; 338var limits = _serviceContext.ServerOptions.Limits; 380var limits = _serviceContext.ServerOptions.Limits; 448var limits = _serviceContext.ServerOptions.Limits; 490var limits = _serviceContext.ServerOptions.Limits; 532var limits = _serviceContext.ServerOptions.Limits; 578var limits = _serviceContext.ServerOptions.Limits; 633var limits = _serviceContext.ServerOptions.Limits; 689var limits = _serviceContext.ServerOptions.Limits;
Http3\WebTransport\WebTransportHandshakeTests.cs (2)
22_serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; 119_serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true;
Http3\WebTransport\WebTransportSessionTests.cs (3)
15Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; 36Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; // TODO add more sync code as now it is flaky 71Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true;
KeepAliveTimeoutTests.cs (3)
251context.ServerOptions.AddServerHeader = false; 252context.ServerOptions.Limits.KeepAliveTimeout = _keepAliveTimeout; 253context.ServerOptions.Limits.MinRequestBodyDataRate = null;
RequestHeadersTimeoutTests.cs (3)
126testContext.ServerOptions.Limits.MinResponseDataRate = null; 155context.ServerOptions.Limits.RequestHeadersTimeout = RequestHeadersTimeout; 156context.ServerOptions.Limits.MinRequestBodyDataRate = null;
RequestTests.cs (3)
888testContext.ServerOptions.Limits.MinRequestBodyDataRate = null; 2197testContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.Latin1; 2290testContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF32;
ResponseHeaderTests.cs (2)
50testContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 87testContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
381pauseWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 382resumeWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 400var bufferSize = serviceContext.ServerOptions.Limits.MaxResponseBufferSize;
TestTransport\TestServer.cs (2)
96context.ServerOptions.ApplicationServices = sp; 97configureKestrel(context.ServerOptions);
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Internal\Http\Http1Connection.cs (1)
758if (_context.ServiceContext.ServerOptions.AllowHostHeaderOverride)
Internal\Http\HttpProtocol.cs (1)
90ServerOptions = ServiceContext.ServerOptions;
Internal\Http2\Http2Connection.cs (5)
154var httpLimits = context.ServiceContext.ServerOptions.Limits; 215public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 231var useException = _context.ServiceContext.ServerOptions.FinOnError || hasActiveStreams; 310var connectionWindow = _context.ServiceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1594if (_totalParsedHeaderSize > _context.ServiceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize * 2)
Internal\Http2\Http2FrameWriter.cs (1)
134_hpackEncoder = new DynamicHPackEncoder(serviceContext.ServerOptions.AllowResponseHeaderCompression);
Internal\Http3\Http3Connection.cs (11)
62var httpLimits = context.ServiceContext.ServerOptions.Limits; 66_serverSettings.EnableWebTransport = Convert.ToUInt32(context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 69_serverSettings.H3Datagram = Convert.ToUInt32(context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 71if (context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 96public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 259var requestHeadersTimeout = serviceContext.ServerOptions.Limits.RequestHeadersTimeout.ToTicks( 307var minDataRate = _context.ServiceContext.ServerOptions.Limits.MinResponseDataRate; 394if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 426if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 640Debug.Assert(_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 929Debug.Assert(_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams);
Internal\Http3\Http3ControlStream.cs (1)
50var httpLimits = context.ServiceContext.ServerOptions.Limits;
Internal\Http3\Http3Stream.cs (5)
87public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 125context.ServiceContext.ServerOptions.Limits.MinResponseDataRate, 139QPackDecoder = new QPackDecoder(_context.ServiceContext.ServerOptions.Limits.Http3.MaxRequestHeaderFieldSize); 866if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams && HttpRequestHeaders.HeaderProtocol.Count > 0) 1258if (!_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams)
Internal\KestrelServerImpl.cs (1)
115public KestrelServerOptions Options => ServiceContext.ServerOptions;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
Http1\Http1ConnectionTests.cs (10)
66_serviceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = int.MaxValue; 77_serviceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = headerLine.Length - 1; 94_serviceContext.ServerOptions.Limits.MaxRequestHeaderCount = 1; 117_serviceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = headerLine.Length; 173Assert.Same(_serviceContext.ServerOptions.Limits.MinRequestBodyDataRate, _http1Connection.MinRequestBodyDataRate); 183Assert.Same(_serviceContext.ServerOptions.Limits.MinResponseDataRate, _http1Connection.MinResponseDataRate); 477_serviceContext.ServerOptions.Limits.MaxRequestLineSize = "GET / HTTP/1.1\r\n".Length; 593var expectedKeepAliveTimeout = _serviceContext.ServerOptions.Limits.KeepAliveTimeout; 888_serviceContext.ServerOptions.Limits.MaxRequestHeaderCount = header0Count + header1Count; 920_serviceContext.ServerOptions.Limits.MaxRequestHeaderCount = header0Count + header1Count;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
381pauseWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 382resumeWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 400var bufferSize = serviceContext.ServerOptions.Limits.MaxResponseBufferSize;
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
70_host = TransportSelector.GetHostBuilder(context.ServerOptions.Limits.MaxRequestBufferSize) 96c.Configure(context.ServerOptions);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
70_host = TransportSelector.GetHostBuilder(context.ServerOptions.Limits.MaxRequestBufferSize) 96c.Configure(context.ServerOptions);