54 writes to ServerOptions
InMemory.FunctionalTests (38)
BadHttpRequestTests.cs (1)
173
ServerOptions
= new KestrelServerOptions()
DefaultHeaderTests.cs (1)
18
ServerOptions
= { AddServerHeader = true }
HttpsTests.cs (6)
440
testContext.
ServerOptions
= serverOptions;
480
testContext.
ServerOptions
= serverOptions;
525
testContext.
ServerOptions
= serverOptions;
559
testContext.
ServerOptions
= serverOptions;
596
testContext.
ServerOptions
= serverOptions;
642
testContext.
ServerOptions
= serverOptions;
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 } } }))
MaxRequestLineSizeTests.cs (1)
87
ServerOptions
= new KestrelServerOptions
RequestHeaderLimitsTests.cs (1)
178
ServerOptions
= options
RequestTests.cs (2)
1782
ServerOptions
= { AllowSynchronousIO = false }
1827
ServerOptions
= { AllowSynchronousIO = true }
ResponseTests.cs (13)
954
ServerOptions
= { AllowSynchronousIO = true }
1034
ServerOptions
= { AllowSynchronousIO = true }
1499
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
1532
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
1563
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
1599
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
1643
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
1897
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
1939
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
1981
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
2026
var serviceContext = new TestServiceContext(LoggerFactory) {
ServerOptions
= { AllowSynchronousIO = true } };
3662
ServerOptions
= { AllowSynchronousIO = true }
3697
ServerOptions
= { AllowSynchronousIO = false }
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41
ServerOptions
= serverOptions,
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61
ServerOptions
= new KestrelServerOptions
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
107
ServerOptions
= serverOptions,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http1\Http1ConnectionTests.cs (1)
271
_serviceContext.
ServerOptions
= options;
KestrelServerTests.cs (1)
720
ServerOptions
=
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41
ServerOptions
= serverOptions,
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61
ServerOptions
= new KestrelServerOptions
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41
ServerOptions
= serverOptions,
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61
ServerOptions
= new KestrelServerOptions
Sockets.FunctionalTests (9)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61
ServerOptions
= new KestrelServerOptions
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
1035
ServerOptions
=
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (7)
286
ServerOptions
=
510
ServerOptions
=
644
ServerOptions
=
765
ServerOptions
=
864
ServerOptions
=
941
ServerOptions
=
1028
ServerOptions
=
196 references to ServerOptions
InMemory.FunctionalTests (152)
ChunkedRequestTests.cs (2)
490
testContext.
ServerOptions
.Limits.MaxRequestHeadersTotalSize =
537
testContext.
ServerOptions
.Limits.MaxRequestHeaderCount = 2;
ConnectionLimitTests.cs (1)
229
serviceContext.
ServerOptions
.Limits.MaxConcurrentConnections = max;
Http2\Http2ConnectionTests.cs (26)
648
_serviceContext.
ServerOptions
.Limits.MinRequestBodyDataRate = null;
739
_serviceContext.
ServerOptions
.Limits.Http2.MaxFrameSize = length;
826
var initialStreamWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialStreamWindowSize;
828
var initialConnectionWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
928
var initialStreamWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialStreamWindowSize;
930
var initialConnectionWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
1059
var initialStreamWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialStreamWindowSize;
1060
var initialConnectionWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
1279
var initialWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialStreamWindowSize;
1349
var initialConnectionWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
1389
_serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize = 128 * 1024;
1390
_serviceContext.
ServerOptions
.Limits.Http2.InitialStreamWindowSize = 96 * 1024;
1392
var initialStreamWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialStreamWindowSize;
1394
var initialConnectionWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
1640
_serviceContext.
ServerOptions
.Limits.Http2.MaxStreamsPerConnection = 1;
1675
_serviceContext.
ServerOptions
.Limits.Http2.MaxStreamsPerConnection = 1;
1688
_serviceContext.
ServerOptions
.Limits.Http2.MaxStreamsPerConnection = 100;
1701
_serviceContext.
ServerOptions
.Limits.Http2.MaxStreamsPerConnection = int.MaxValue;
1714
_serviceContext.
ServerOptions
.Limits.Http2.MaxStreamsPerConnection = 1;
1793
_serviceContext.
ServerOptions
.Limits.Http2.MaxStreamsPerConnection = maxStreamsPerConnection;
1854
var initialWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialStreamWindowSize;
1878
var initialWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
2347
_serviceContext.
ServerOptions
.Limits.Http2.HeaderTableSize = 0;
2477
_serviceContext.
ServerOptions
.AllowResponseHeaderCompression = false;
3408
var initialConnectionWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
4019
_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);
1411
pauseWriterThreshold: serviceContext.
ServerOptions
.Limits.MaxRequestBufferSize ?? 0,
1412
resumeWriterThreshold: serviceContext.
ServerOptions
.Limits.MaxRequestBufferSize ?? 0,
1430
var bufferSize = serviceContext.
ServerOptions
.Limits.MaxResponseBufferSize;
Http2\Http2TimeoutTests.cs (19)
19
var limits = _serviceContext.
ServerOptions
.Limits;
41
var limits = _serviceContext.
ServerOptions
.Limits;
61
var limits = _serviceContext.
ServerOptions
.Limits;
110
var limits = _serviceContext.
ServerOptions
.Limits;
133
var limits = _serviceContext.
ServerOptions
.Limits;
174
var limits = _serviceContext.
ServerOptions
.Limits;
209
var limits = _serviceContext.
ServerOptions
.Limits;
350
var limits = _serviceContext.
ServerOptions
.Limits;
403
var limits = _serviceContext.
ServerOptions
.Limits;
458
var limits = _serviceContext.
ServerOptions
.Limits;
510
var limits = _serviceContext.
ServerOptions
.Limits;
564
var limits = _serviceContext.
ServerOptions
.Limits;
630
var limits = _serviceContext.
ServerOptions
.Limits;
677
var limits = _serviceContext.
ServerOptions
.Limits;
728
var limits = _serviceContext.
ServerOptions
.Limits;
795
var limits = _serviceContext.
ServerOptions
.Limits;
863
var limits = _serviceContext.
ServerOptions
.Limits;
915
var initialConnectionWindowSize = _serviceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
920
var limits = _serviceContext.
ServerOptions
.Limits;
Http2\Http2WebSocketTests.cs (3)
325
var limits = _serviceContext.
ServerOptions
.Limits;
387
var limits = _serviceContext.
ServerOptions
.Limits;
403
Assert.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;
1955
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled;
2095
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled;
2378
var 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)
21
var limits = _serviceContext.
ServerOptions
.Limits;
37
var limits = _serviceContext.
ServerOptions
.Limits;
61
var limits = _serviceContext.
ServerOptions
.Limits;
90
var limits = _serviceContext.
ServerOptions
.Limits;
131
var limits = _serviceContext.
ServerOptions
.Limits;
162
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled;
165
var limits = _serviceContext.
ServerOptions
.Limits;
215
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = true;
219
var limits = _serviceContext.
ServerOptions
.Limits;
242
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = false;
247
var limits = _serviceContext.
ServerOptions
.Limits;
283
var limits = _serviceContext.
ServerOptions
.Limits;
305
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = pendingStreamEnabled;
308
var limits = _serviceContext.
ServerOptions
.Limits;
338
var limits = _serviceContext.
ServerOptions
.Limits;
380
var limits = _serviceContext.
ServerOptions
.Limits;
448
var limits = _serviceContext.
ServerOptions
.Limits;
490
var limits = _serviceContext.
ServerOptions
.Limits;
532
var limits = _serviceContext.
ServerOptions
.Limits;
578
var limits = _serviceContext.
ServerOptions
.Limits;
633
var limits = _serviceContext.
ServerOptions
.Limits;
689
var limits = _serviceContext.
ServerOptions
.Limits;
Http3\WebTransport\WebTransportHandshakeTests.cs (2)
22
_serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = true;
113
_serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = true;
Http3\WebTransport\WebTransportSessionTests.cs (3)
15
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = true;
36
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = true; // TODO add more sync code as now it is flaky
71
Http3Api._serviceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams = true;
KeepAliveTimeoutTests.cs (3)
251
context.
ServerOptions
.AddServerHeader = false;
252
context.
ServerOptions
.Limits.KeepAliveTimeout = _keepAliveTimeout;
253
context.
ServerOptions
.Limits.MinRequestBodyDataRate = null;
RequestHeadersTimeoutTests.cs (3)
126
testContext.
ServerOptions
.Limits.MinResponseDataRate = null;
155
context.
ServerOptions
.Limits.RequestHeadersTimeout = RequestHeadersTimeout;
156
context.
ServerOptions
.Limits.MinRequestBodyDataRate = null;
RequestTests.cs (3)
888
testContext.
ServerOptions
.Limits.MinRequestBodyDataRate = null;
2197
testContext.
ServerOptions
.RequestHeaderEncodingSelector = _ => Encoding.Latin1;
2290
testContext.
ServerOptions
.RequestHeaderEncodingSelector = _ => Encoding.UTF32;
ResponseHeaderTests.cs (2)
50
testContext.
ServerOptions
.ResponseHeaderEncodingSelector = _ => Encoding.UTF8;
87
testContext.
ServerOptions
.ResponseHeaderEncodingSelector = _ => encoding;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
367
pauseWriterThreshold: serviceContext.
ServerOptions
.Limits.MaxRequestBufferSize ?? 0,
368
resumeWriterThreshold: serviceContext.
ServerOptions
.Limits.MaxRequestBufferSize ?? 0,
386
var bufferSize = serviceContext.
ServerOptions
.Limits.MaxResponseBufferSize;
TestTransport\TestServer.cs (2)
96
context.
ServerOptions
.ApplicationServices = sp;
97
configureKestrel(context.
ServerOptions
);
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Internal\Http\Http1Connection.cs (1)
656
if (_context.ServiceContext.
ServerOptions
.AllowHostHeaderOverride)
Internal\Http\HttpProtocol.cs (1)
90
ServerOptions = ServiceContext.
ServerOptions
;
Internal\Http2\Http2Connection.cs (5)
154
var httpLimits = context.ServiceContext.
ServerOptions
.Limits;
215
public KestrelServerLimits Limits => _context.ServiceContext.
ServerOptions
.Limits;
231
var useException = _context.ServiceContext.
ServerOptions
.FinOnError || hasActiveStreams;
310
var connectionWindow = _context.ServiceContext.
ServerOptions
.Limits.Http2.InitialConnectionWindowSize;
1581
if (_totalParsedHeaderSize > _context.ServiceContext.
ServerOptions
.Limits.MaxRequestHeadersTotalSize * 2)
Internal\Http2\Http2FrameWriter.cs (1)
134
_hpackEncoder = new DynamicHPackEncoder(serviceContext.
ServerOptions
.AllowResponseHeaderCompression);
Internal\Http3\Http3Connection.cs (11)
62
var httpLimits = context.ServiceContext.
ServerOptions
.Limits;
66
_serverSettings.EnableWebTransport = Convert.ToUInt32(context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams);
69
_serverSettings.H3Datagram = Convert.ToUInt32(context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams);
71
if (context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams)
96
public KestrelServerLimits Limits => _context.ServiceContext.
ServerOptions
.Limits;
259
var requestHeadersTimeout = serviceContext.
ServerOptions
.Limits.RequestHeadersTimeout.ToTicks(
307
var minDataRate = _context.ServiceContext.
ServerOptions
.Limits.MinResponseDataRate;
392
if (_context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams)
424
if (_context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams)
625
Debug.Assert(_context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams);
918
Debug.Assert(_context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams);
Internal\Http3\Http3ControlStream.cs (1)
50
var httpLimits = context.ServiceContext.
ServerOptions
.Limits;
Internal\Http3\Http3Stream.cs (5)
85
public KestrelServerLimits Limits => _context.ServiceContext.
ServerOptions
.Limits;
123
context.ServiceContext.
ServerOptions
.Limits.MinResponseDataRate,
137
QPackDecoder = new QPackDecoder(_context.ServiceContext.
ServerOptions
.Limits.Http3.MaxRequestHeaderFieldSize);
864
if (_context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams && HttpRequestHeaders.HeaderProtocol.Count > 0)
1257
if (!_context.ServiceContext.
ServerOptions
.EnableWebTransportAndH3Datagrams)
Internal\KestrelServerImpl.cs (1)
115
public KestrelServerOptions Options => ServiceContext.
ServerOptions
;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
Http1\Http1ConnectionTests.cs (11)
63
_serviceContext.
ServerOptions
.Limits.MaxRequestHeadersTotalSize = int.MaxValue;
74
_serviceContext.
ServerOptions
.Limits.MaxRequestHeadersTotalSize = headerLine.Length - 1;
91
_serviceContext.
ServerOptions
.Limits.MaxRequestHeaderCount = 1;
114
_serviceContext.
ServerOptions
.Limits.MaxRequestHeadersTotalSize = headerLine.Length;
170
Assert.Same(_serviceContext.
ServerOptions
.Limits.MinRequestBodyDataRate, _http1Connection.MinRequestBodyDataRate);
180
Assert.Same(_serviceContext.
ServerOptions
.Limits.MinResponseDataRate, _http1Connection.MinResponseDataRate);
453
_timeoutControl.Verify(cc => cc.ResetTimeout(_serviceContext.
ServerOptions
.Limits.RequestHeadersTimeout, TimeoutReason.RequestHeaders));
459
_serviceContext.
ServerOptions
.Limits.MaxRequestLineSize = "GET / HTTP/1.1\r\n".Length;
575
var expectedKeepAliveTimeout = _serviceContext.
ServerOptions
.Limits.KeepAliveTimeout;
870
_serviceContext.
ServerOptions
.Limits.MaxRequestHeaderCount = header0Count + header1Count;
902
_serviceContext.
ServerOptions
.Limits.MaxRequestHeaderCount = header0Count + header1Count;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
367
pauseWriterThreshold: serviceContext.
ServerOptions
.Limits.MaxRequestBufferSize ?? 0,
368
resumeWriterThreshold: serviceContext.
ServerOptions
.Limits.MaxRequestBufferSize ?? 0,
386
var 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)
96
c.Configure(context.
ServerOptions
);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
70
_host = TransportSelector.GetHostBuilder(context.
ServerOptions
.Limits.MaxRequestBufferSize)
96
c.Configure(context.
ServerOptions
);