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