12 references to IsSecure
System.Net.Http (12)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
304public 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 575Activity? activity = ConnectionSetupDistributedTracing.StartConnectionSetupActivity(IsSecure, OriginAuthority); 624if (IsSecure)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
47sb.Append(IsSecure ? "https://" : "http://") 190if (IsSecure)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1489WriteIndexedHeader(_pool.IsSecure ? H2StaticTable.SchemeHttps : H2StaticTable.SchemeHttp, ref headerBuffer);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
73_pool.IsSecure ? "https" : "http", 87string scheme = _pool.IsSecure ? "https" : "http";
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
48tags.Add("url.scheme", pool.IsSecure ? "https" : "http");