20 references to Constants
Microsoft.AspNetCore.Server.HttpSys (20)
MessagePump.cs (1)
99Listener.Options.UrlPrefixes.Add(Constants.DefaultServerAddress);
MessagePump.Log.cs (1)
20[LoggerMessage(LoggerEventIds.BindingToDefault, LogLevel.Debug, $"No listening endpoints were configured. Binding to {Constants.DefaultServerAddress} by default.", EventName = "BindingToDefault")]
RequestProcessing\Request.cs (2)
329public string Scheme => IsHttps ? Constants.HttpsScheme : Constants.HttpScheme;
RequestProcessing\Response.cs (12)
393var requestCloseSet = Matches(Constants.Close, requestConnectionString); 394var requestConnectionKeepAliveSet = Matches(Constants.KeepAlive, requestConnectionString); 401var responseCloseSet = Matches(Constants.Close, responseConnectionString); 402var responseChunkedSet = Matches(Constants.Chunked, transferEncodingString); 412if (requestVersion < Constants.V1_0 413|| (requestVersion == Constants.V1_0 && (!requestConnectionKeepAliveSet || responseChunkedSet)) 414|| (requestVersion == Constants.V1_1 && requestCloseSet) 443Headers[HeaderNames.ContentLength] = Constants.Zero; 448else if (requestVersion == Constants.V1_1) 451Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 468Headers.Append(HeaderNames.Connection, Constants.Close); 471if (responseCloseSet && requestVersion >= Constants.V2 && SupportsGoAway)
UrlPrefix.cs (4)
55if (string.Equals(Constants.HttpScheme, scheme, StringComparison.OrdinalIgnoreCase)) 57scheme = Constants.HttpScheme; // Always use a lower case scheme 60else if (string.Equals(Constants.HttpsScheme, scheme, StringComparison.OrdinalIgnoreCase)) 62scheme = Constants.HttpsScheme; // Always use a lower case scheme