12 references to IsSecure
System.Net.Http (12)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
304
public bool IsDefaultPort => OriginAuthority.Port == (
IsSecure
? DefaultHttpsPort : DefaultHttpPort);
420
(request.Version.Major >= 3 || (request.VersionPolicy == HttpVersionPolicy.RequestVersionOrHigher &&
IsSecure
)) &&
453
(request.Version.Major >= 2 || (request.VersionPolicy == HttpVersionPolicy.RequestVersionOrHigher &&
IsSecure
)) &&
454
(request.VersionPolicy != HttpVersionPolicy.RequestVersionOrLower ||
IsSecure
)) // prefer HTTP/1.1 if connection is not secured and downgrade is possible
575
Activity? activity = ConnectionSetupDistributedTracing.StartConnectionSetupActivity(
IsSecure
, OriginAuthority);
624
if (
IsSecure
)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
47
sb.Append(
IsSecure
? "https://" : "http://")
190
if (
IsSecure
)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1489
WriteIndexedHeader(_pool.
IsSecure
? H2StaticTable.SchemeHttps : H2StaticTable.SchemeHttp, ref headerBuffer);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
73
_pool.
IsSecure
? "https" : "http",
87
string scheme = _pool.
IsSecure
? "https" : "http";
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
48
tags.Add("url.scheme", pool.
IsSecure
? "https" : "http");