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