2 writes to IdnHost
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (2)
30IdnHost = $"[{uri.IdnHost}]"; 37HostValue = IdnHost = uri.IdnHost;
15 references to IdnHost
System.Net.Http (15)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (5)
573stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.Port, request, async, cancellationToken).ConfigureAwait(false); 762tunnelRequest.Headers.Host = $"{_originAuthority.IdnHost}:{_originAuthority.Port}"; // This specifies destination host/port to connect to 796await SocksHelper.EstablishSocksTunnelAsync(stream, _originAuthority.IdnHost, _originAuthority.Port, _proxyUri, ProxyCredentials, async, cancellationToken).ConfigureAwait(false); 992$"https://{_originAuthority}" + (_sslOptionsHttp11.TargetHost != _originAuthority.IdnHost ? $", SSL TargetHost={_sslOptionsHttp11.TargetHost}" : null)) : 995$"https://{_originAuthority}/ tunnelled via Proxy {_proxyUri}" + (_sslOptionsHttp11.TargetHost != _originAuthority.IdnHost ? $", SSL TargetHost={_sslOptionsHttp11.TargetHost}" : null)));
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
48.Append(_originAuthority.IdnHost);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
162quicConnection = await ConnectHelper.ConnectQuicAsync(request, new DnsEndPoint(authority.IdnHost, authority.Port), _poolManager.Settings._pooledConnectionIdleTimeout, _sslOptionsHttp3!, cancellationToken).ConfigureAwait(false); 241var authority = new HttpAuthority(value.Host ?? _originAuthority.IdnHost, value.Port);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
79string altUsedValue = altUsedDefaultPort ? authority.IdnHost : string.Create(CultureInfo.InvariantCulture, $"{authority.IdnHost}:{authority.Port}");
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (5)
44return other != null && string.Equals(IdnHost, other.IdnHost) && Port == other.Port; 54return HashCode.Combine(IdnHost, Port); 60return IdnHost != null ? $"{IdnHost}:{Port}" : "<empty>";