51 references to HttpConnectionKind
System.Net.Http (51)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
79if (!isProxyAuth && connection.Kind == HttpConnectionKind.Proxy && !ProxySupportsConnectionAuth(response))
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (28)
37private readonly HttpConnectionKind _kind; 76public HttpConnectionPool(HttpConnectionPoolManager poolManager, HttpConnectionKind kind, string? host, int port, string? sslHostName, Uri? proxyUri) 84Debug.Assert(host is not null || (kind == HttpConnectionKind.Proxy && proxyUri is not null)); 96case HttpConnectionKind.Http: 105case HttpConnectionKind.Https: 112case HttpConnectionKind.Proxy: 122case HttpConnectionKind.ProxyTunnel: 132case HttpConnectionKind.SslProxyTunnel: 141case HttpConnectionKind.ProxyConnect: 156case HttpConnectionKind.SocksTunnel: 157case HttpConnectionKind.SslSocksTunnel: 299public HttpConnectionKind Kind => _kind; 300public bool IsSecure => _kind == HttpConnectionKind.Https || _kind == HttpConnectionKind.SslProxyTunnel || _kind == HttpConnectionKind.SslSocksTunnel; 305private bool DoProxyAuth => (_kind == HttpConnectionKind.Proxy || _kind == HttpConnectionKind.ProxyConnect); 358if ((Kind is HttpConnectionKind.ProxyTunnel or HttpConnectionKind.SslProxyTunnel) && 581case HttpConnectionKind.Http: 582case HttpConnectionKind.Https: 583case HttpConnectionKind.ProxyConnect: 587if (_kind == HttpConnectionKind.ProxyConnect && _sslOptionsProxy != null) 593case HttpConnectionKind.Proxy: 603case HttpConnectionKind.ProxyTunnel: 604case HttpConnectionKind.SslProxyTunnel: 614case HttpConnectionKind.SocksTunnel: 615case HttpConnectionKind.SslSocksTunnel:
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (5)
66Debug.Assert(_kind == HttpConnectionKind.Https || _kind == HttpConnectionKind.SslProxyTunnel || _kind == HttpConnectionKind.Http || _kind == HttpConnectionKind.SocksTunnel || _kind == HttpConnectionKind.SslSocksTunnel);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
72Debug.Assert(_kind == HttpConnectionKind.Https);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
78bool altUsedDefaultPort = pool.Kind == HttpConnectionKind.Http && authority.Port == HttpConnectionPool.DefaultHttpPort || pool.Kind == HttpConnectionKind.Https && authority.Port == HttpConnectionPool.DefaultHttpsPort;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (4)
297public HttpConnectionKind Kind => _pool.Kind; 329if (Kind == HttpConnectionKind.Proxy) 351Debug.Assert(Kind != HttpConnectionKind.Proxy); 356Debug.Assert(Kind == HttpConnectionKind.Proxy);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (10)
264return new HttpConnectionKey(HttpConnectionKind.ProxyConnect, uri.IdnHost, uri.Port, null, proxyUri, GetIdentityIfDefaultCredentialsUsed(_settings._defaultCredentialsUsedForProxy)); 292return new HttpConnectionKey(HttpConnectionKind.SslSocksTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 296return new HttpConnectionKey(HttpConnectionKind.SocksTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 304return new HttpConnectionKey(HttpConnectionKind.ProxyTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 311return new HttpConnectionKey(HttpConnectionKind.Proxy, null, 0, null, proxyUri, identity); 317return new HttpConnectionKey(HttpConnectionKind.SslProxyTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 322return new HttpConnectionKey(HttpConnectionKind.Https, uri.IdnHost, uri.Port, sslHostName, null, identity); 326return new HttpConnectionKey(HttpConnectionKind.Http, uri.IdnHost, uri.Port, null, null, identity); 522public readonly HttpConnectionKind Kind; 529public HttpConnectionKey(HttpConnectionKind kind, string? host, int port, string? sslHostName, Uri? proxyUri, string identity)