12 references to IsSecure
System.Net.Http (12)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
293
public bool IsDefaultPort => OriginAuthority.Port == (
IsSecure
? DefaultHttpsPort : DefaultHttpPort);
409
(request.Version.Major >= 3 || (request.VersionPolicy == HttpVersionPolicy.RequestVersionOrHigher &&
IsSecure
)) &&
442
(request.Version.Major >= 2 || (request.VersionPolicy == HttpVersionPolicy.RequestVersionOrHigher &&
IsSecure
)) &&
443
(request.VersionPolicy != HttpVersionPolicy.RequestVersionOrLower ||
IsSecure
)) // prefer HTTP/1.1 if connection is not secured and downgrade is possible
564
Activity? activity = ConnectionSetupDistributedTracing.StartConnectionSetupActivity(
IsSecure
, _telemetryServerAddress, OriginAuthority.Port);
613
if (
IsSecure
)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
47
sb.Append(
IsSecure
? "https://" : "http://")
189
if (
IsSecure
)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1503
WriteIndexedHeader(_pool.
IsSecure
? H2StaticTable.SchemeHttps : H2StaticTable.SchemeHttp, ref headerBuffer);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
76
_pool.
IsSecure
? "https" : "http",
91
string scheme = _pool.
IsSecure
? "https" : "http";
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
48
tags.Add("url.scheme", pool.
IsSecure
? "https" : "http");