1 write to _proxyUri
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
80
_proxyUri
= proxyUri;
17 references to _proxyUri
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (17)
253
if (
_proxyUri
!= null && HttpUtilities.IsSupportedSecureScheme(
_proxyUri
.Scheme))
255
_sslOptionsProxy = ConstructSslOptions(poolManager,
_proxyUri
.IdnHost);
301
public Uri? ProxyUri =>
_proxyUri
;
377
return AuthenticationHelper.SendWithProxyAuthAsync(request,
_proxyUri
!, async, ProxyCredentials, doRequestAuth, this, cancellationToken);
594
stream = await ConnectToTcpHostAsync(
_proxyUri
!.IdnHost,
_proxyUri
.Port, request, async, cancellationToken).ConfigureAwait(false);
784
HttpRequestMessage tunnelRequest = new HttpRequestMessage(HttpMethod.Connect,
_proxyUri
);
792
HttpResponseMessage tunnelResponse = await _poolManager.SendProxyConnectAsync(tunnelRequest,
_proxyUri
!, async, cancellationToken).ConfigureAwait(false);
797
throw new HttpRequestException(HttpRequestError.ProxyTunnelError, SR.Format(SR.net_http_proxy_tunnel_returned_failure_status_code,
_proxyUri
, (int)tunnelResponse.StatusCode), statusCode: tunnelResponse.StatusCode);
813
Debug.Assert(
_proxyUri
!= null);
815
Stream stream = await ConnectToTcpHostAsync(
_proxyUri
.IdnHost,
_proxyUri
.Port, request, async, cancellationToken).ConfigureAwait(false);
819
await SocksHelper.EstablishSocksTunnelAsync(stream, _originAuthority.IdnHost, _originAuthority.Port,
_proxyUri
, ProxyCredentials, async, cancellationToken).ConfigureAwait(false);
1021
(
_proxyUri
== null ?
1026
$"Proxy {
_proxyUri
}" :
1027
$"https://{_originAuthority}/ tunnelled via Proxy {
_proxyUri
}" + (_sslOptionsHttp11.TargetHost != _originAuthority.IdnHost ? $", SSL TargetHost={_sslOptionsHttp11.TargetHost}" : null)));