1 write to ServerOptions
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.cs (1)
91
ServerOptions
= ServiceContext.ServerOptions;
34 references to ServerOptions
Microsoft.AspNetCore.Server.Kestrel.Core (34)
Internal\Http\Http1Connection.cs (12)
93
TimeoutControl.StartDrainTimeout(MinResponseDataRate,
ServerOptions
.Limits.MaxResponseBufferSize);
104
_http1Output.Abort(
ServerOptions
.FinOnError ? new ConnectionAbortedException(CoreStrings.ConnectionAbortedByClient) : null!, ConnectionEndReason.TransportCompleted);
185
TimeoutControl.ResetTimeout(
ServerOptions
.Limits.RequestHeadersTimeout, TimeoutReason.RequestHeaders);
216
if (reader.Remaining >=
ServerOptions
.Limits.MaxRequestLineSize)
226
var trimmedBuffer = reader.Sequence.Slice(reader.Position,
ServerOptions
.Limits.MaxRequestLineSize);
363
if (
ServerOptions
.DisableStringReuse ||
436
if (
ServerOptions
.DisableStringReuse ||
482
if (
ServerOptions
.DisableStringReuse ||
538
var disableStringReuse =
ServerOptions
.DisableStringReuse;
680
_remainingRequestHeadersBytesAllowed = (long)
ServerOptions
.Limits.MaxRequestHeadersTotalSize + 2;
682
MinResponseDataRate =
ServerOptions
.Limits.MinResponseDataRate;
705
TimeoutControl.SetTimeout(
ServerOptions
.Limits.KeepAliveTimeout, TimeoutReason.KeepAlive);
Internal\Http\HttpProtocol.cs (9)
357
MaxRequestBodySize =
ServerOptions
.Limits.MaxRequestBodySize;
358
MinRequestBodyDataRate =
ServerOptions
.Limits.MinRequestBodyDataRate;
359
AllowSynchronousIO =
ServerOptions
.AllowSynchronousIO;
388
HttpRequestHeaders.EncodingSelector =
ServerOptions
.RequestHeaderEncodingSelector;
389
HttpRequestHeaders.ReuseHeaderValues = !
ServerOptions
.DisableStringReuse;
391
HttpResponseHeaders.EncodingSelector =
ServerOptions
.ResponseHeaderEncodingSelector;
430
_eagerRequestHeadersParsedLimit =
ServerOptions
.Limits.MaxRequestHeaderCount;
1249
if (
ServerOptions
.AddServerHeader && !responseHeaders.HasServer)
1361
if (
ServerOptions
.AddServerHeader)
Internal\Http2\Http2Stream.cs (5)
60
_eagerRequestHeadersParsedLimit =
ServerOptions
.Limits.MaxRequestHeaderCount * 2;
221
if (TotalParsedHeaderSize >
ServerOptions
.Limits.MaxRequestHeadersTotalSize)
227
if (RequestHeadersParsed >
ServerOptions
.Limits.MaxRequestHeaderCount)
302
if (!
ServerOptions
.AllowAlternateSchemes || !Uri.CheckSchemeName(headerScheme))
334
if (requestLineLength >
ServerOptions
.Limits.MaxRequestLineSize)
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
30
ResponseTrailers = new HttpResponseTrailers(
ServerOptions
.ResponseHeaderEncodingSelector);
Internal\Http3\Http3Stream.cs (6)
102
_eagerRequestHeadersParsedLimit =
ServerOptions
.Limits.MaxRequestHeaderCount * 2;
289
if (_totalParsedHeaderSize >
ServerOptions
.Limits.MaxRequestHeadersTotalSize * 2)
966
if (_totalParsedHeaderSize >
ServerOptions
.Limits.MaxRequestHeadersTotalSize)
972
if (RequestHeadersParsed >
ServerOptions
.Limits.MaxRequestHeaderCount)
1023
if (!
ServerOptions
.AllowAlternateSchemes || !Uri.CheckSchemeName(headerScheme))
1055
if (requestLineLength >
ServerOptions
.Limits.MaxRequestLineSize)
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
25
ResponseTrailers = new HttpResponseTrailers(
ServerOptions
.ResponseHeaderEncodingSelector);