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