20 references to Constants
Microsoft.AspNetCore.Server.HttpSys (20)
MessagePump.cs (1)
99
Listener.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)
329
public string Scheme => IsHttps ?
Constants
.HttpsScheme :
Constants
.HttpScheme;
RequestProcessing\Response.cs (12)
393
var requestCloseSet = Matches(
Constants
.Close, requestConnectionString);
394
var requestConnectionKeepAliveSet = Matches(
Constants
.KeepAlive, requestConnectionString);
401
var responseCloseSet = Matches(
Constants
.Close, responseConnectionString);
402
var responseChunkedSet = Matches(
Constants
.Chunked, transferEncodingString);
412
if (requestVersion <
Constants
.V1_0
413
|| (requestVersion ==
Constants
.V1_0 && (!requestConnectionKeepAliveSet || responseChunkedSet))
414
|| (requestVersion ==
Constants
.V1_1 && requestCloseSet)
443
Headers[HeaderNames.ContentLength] =
Constants
.Zero;
448
else if (requestVersion ==
Constants
.V1_1)
451
Headers[HeaderNames.TransferEncoding] =
Constants
.Chunked;
468
Headers.Append(HeaderNames.Connection,
Constants
.Close);
471
if (responseCloseSet && requestVersion >=
Constants
.V2 && SupportsGoAway)
UrlPrefix.cs (4)
55
if (string.Equals(
Constants
.HttpScheme, scheme, StringComparison.OrdinalIgnoreCase))
57
scheme =
Constants
.HttpScheme; // Always use a lower case scheme
60
else if (string.Equals(
Constants
.HttpsScheme, scheme, StringComparison.OrdinalIgnoreCase))
62
scheme =
Constants
.HttpsScheme; // Always use a lower case scheme