21 references to Constants
Microsoft.AspNetCore.Server.HttpSys (20)
MessagePump.cs (1)
107Listener.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)
409var requestCloseSet = Matches(Constants.Close, requestConnectionString); 410var requestConnectionKeepAliveSet = Matches(Constants.KeepAlive, requestConnectionString); 417var responseCloseSet = Matches(Constants.Close, responseConnectionString); 418var responseChunkedSet = Matches(Constants.Chunked, transferEncodingString); 428if (requestVersion < Constants.V1_0 429|| (requestVersion == Constants.V1_0 && (!requestConnectionKeepAliveSet || responseChunkedSet)) 430|| (requestVersion == Constants.V1_1 && requestCloseSet) 459Headers[HeaderNames.ContentLength] = Constants.Zero; 464else if (requestVersion == Constants.V1_1) 467Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 484Headers.Append(HeaderNames.Connection, Constants.Close); 487if (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
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
MessagePumpTests.cs (1)
118Assert.StartsWith(Constants.DefaultServerAddress, server.Features.Get<IServerAddressesFeature>().Addresses.Single());