12 references to IsSecure
System.Net.Http (12)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
302
public bool IsDefaultPort => OriginAuthority.Port == (
IsSecure
? DefaultHttpsPort : DefaultHttpPort);
423
(request.Version.Major >= 3 || (request.VersionPolicy == HttpVersionPolicy.RequestVersionOrHigher &&
IsSecure
)) &&
456
(request.Version.Major >= 2 || (request.VersionPolicy == HttpVersionPolicy.RequestVersionOrHigher &&
IsSecure
)) &&
457
(request.VersionPolicy != HttpVersionPolicy.RequestVersionOrLower ||
IsSecure
) && // prefer HTTP/1.1 if connection is not secured and downgrade is possible
586
Activity? activity = ConnectionSetupDistributedTracing.StartConnectionSetupActivity(
IsSecure
, _telemetryServerAddress, OriginAuthority.Port);
635
if (
IsSecure
)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
56
sb.Append(
IsSecure
? "https://" : "http://")
198
if (
IsSecure
)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1556
WriteIndexedHeader(_pool.
IsSecure
? H2StaticTable.SchemeHttps : H2StaticTable.SchemeHttp, ref headerBuffer);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
132
_pool.
IsSecure
? "https" : "http",
147
string scheme = _pool.
IsSecure
? "https" : "http";
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
184
tags.Add("url.scheme", pool.
IsSecure
? "https" : "http");