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)
92
TimeoutControl.StartDrainTimeout(MinResponseDataRate,
ServerOptions
.Limits.MaxResponseBufferSize);
103
_http1Output.Abort(
ServerOptions
.FinOnError ? new ConnectionAbortedException(CoreStrings.ConnectionAbortedByClient) : null!, ConnectionEndReason.TransportCompleted);
184
TimeoutControl.ResetTimeout(
ServerOptions
.Limits.RequestHeadersTimeout, TimeoutReason.RequestHeaders);
215
if (reader.Remaining >=
ServerOptions
.Limits.MaxRequestLineSize)
225
var trimmedBuffer = reader.Sequence.Slice(reader.Position,
ServerOptions
.Limits.MaxRequestLineSize);
362
if (
ServerOptions
.DisableStringReuse ||
435
if (
ServerOptions
.DisableStringReuse ||
481
if (
ServerOptions
.DisableStringReuse ||
537
var disableStringReuse =
ServerOptions
.DisableStringReuse;
687
_remainingRequestHeadersBytesAllowed = (long)
ServerOptions
.Limits.MaxRequestHeadersTotalSize + 2;
689
MinResponseDataRate =
ServerOptions
.Limits.MinResponseDataRate;
712
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);