18 references to Constants
Microsoft.AspNetCore.Server.HttpSys (18)
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)
321public string Scheme => IsHttps ? Constants.HttpsScheme : Constants.HttpScheme;
RequestProcessing\Response.cs (10)
393var requestCloseSet = Matches(Constants.Close, requestConnectionString); 400var responseCloseSet = Matches(Constants.Close, responseConnectionString); 401var responseChunkedSet = Matches(Constants.Chunked, transferEncodingString); 406if (requestVersion <= Constants.V1_0 // Http.Sys does not support "Keep-Alive: true" or "Connection: Keep-Alive" 407|| (requestVersion == Constants.V1_1 && requestCloseSet) 436Headers[HeaderNames.ContentLength] = Constants.Zero; 441else if (requestVersion == Constants.V1_1) 444Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 461Headers.Append(HeaderNames.Connection, Constants.Close); 464if (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