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)
93TimeoutControl.StartDrainTimeout(MinResponseDataRate, ServerOptions.Limits.MaxResponseBufferSize); 104_http1Output.Abort(ServerOptions.FinOnError ? new ConnectionAbortedException(CoreStrings.ConnectionAbortedByClient) : null!, ConnectionEndReason.TransportCompleted); 185TimeoutControl.ResetTimeout(ServerOptions.Limits.RequestHeadersTimeout, TimeoutReason.RequestHeaders); 216if (reader.Remaining >= ServerOptions.Limits.MaxRequestLineSize) 226var trimmedBuffer = reader.Sequence.Slice(reader.Position, ServerOptions.Limits.MaxRequestLineSize); 363if (ServerOptions.DisableStringReuse || 436if (ServerOptions.DisableStringReuse || 482if (ServerOptions.DisableStringReuse || 538var disableStringReuse = ServerOptions.DisableStringReuse; 680_remainingRequestHeadersBytesAllowed = (long)ServerOptions.Limits.MaxRequestHeadersTotalSize + 2; 682MinResponseDataRate = ServerOptions.Limits.MinResponseDataRate; 705TimeoutControl.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);