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)
584stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.Port, request, async, cancellationToken).ConfigureAwait(false); 785tunnelRequest.Headers.Host = $"{_originAuthority.IdnHost}:{_originAuthority.Port}"; // This specifies destination host/port to connect to 819await SocksHelper.EstablishSocksTunnelAsync(stream, _originAuthority.IdnHost, _originAuthority.Port, _proxyUri, ProxyCredentials, async, cancellationToken).ConfigureAwait(false); 1024$"https://{_originAuthority}" + (_sslOptionsHttp11.TargetHost != _originAuthority.IdnHost ? $", SSL TargetHost={_sslOptionsHttp11.TargetHost}" : null)) : 1027$"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)
266QuicConnection quicConnection = await ConnectHelper.ConnectQuicAsync(queueItem.Request, new DnsEndPoint(authority.IdnHost, authority.Port), _poolManager.Settings._pooledConnectionIdleTimeout, _sslOptionsHttp3!, connection.StreamCapacityCallback, cts.Token).ConfigureAwait(false); 675var 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>";