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)
327public string Scheme => IsHttps ? Constants.HttpsScheme : Constants.HttpScheme;
RequestProcessing\Response.cs (12)
391var requestCloseSet = Matches(Constants.Close, requestConnectionString); 392var requestConnectionKeepAliveSet = Matches(Constants.KeepAlive, requestConnectionString); 399var responseCloseSet = Matches(Constants.Close, responseConnectionString); 400var responseChunkedSet = Matches(Constants.Chunked, transferEncodingString); 410if (requestVersion < Constants.V1_0 411|| (requestVersion == Constants.V1_0 && (!requestConnectionKeepAliveSet || responseChunkedSet)) 412|| (requestVersion == Constants.V1_1 && requestCloseSet) 441Headers[HeaderNames.ContentLength] = Constants.Zero; 446else if (requestVersion == Constants.V1_1) 449Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 466Headers.Append(HeaderNames.Connection, Constants.Close); 469if (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