1 write to Port
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
39Port = port;
20 references to Port
System.Net.Http (20)
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (3)
28activity.DisplayName = $"HTTP connection_setup {authority.HostValue}:{authority.Port}"; 32activity.SetTag("server.port", authority.Port); 77activity.DisplayName = $"HTTP wait_for_connection {authority.HostValue}:{authority.Port}";
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (5)
183: $"{_originAuthority.HostValue}:{_originAuthority.Port}"; 304public bool IsDefaultPort => OriginAuthority.Port == (IsSecure ? DefaultHttpsPort : DefaultHttpPort); 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);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
52sb.Append(CultureInfo.InvariantCulture, $":{_originAuthority.Port}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
266QuicConnection quicConnection = await ConnectHelper.ConnectQuicAsync(queueItem.Request, new DnsEndPoint(authority.IdnHost, authority.Port), _poolManager.Settings._pooledConnectionIdleTimeout, _sslOptionsHttp3!, connection.StreamCapacityCallback, cts.Token).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (3)
78bool altUsedDefaultPort = pool.Kind == HttpConnectionKind.Http && authority.Port == HttpConnectionPool.DefaultHttpPort || pool.Kind == HttpConnectionKind.Https && authority.Port == HttpConnectionPool.DefaultHttpsPort; 79string altUsedValue = altUsedDefaultPort ? authority.IdnHost : string.Create(CultureInfo.InvariantCulture, $"{authority.IdnHost}:{authority.Port}");
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (4)
44return other != null && string.Equals(IdnHost, other.IdnHost) && Port == other.Port; 54return HashCode.Combine(IdnHost, Port); 60return IdnHost != null ? $"{IdnHost}:{Port}" : "<empty>";
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
75_pool.OriginAuthority.Port, 89int port = _pool.OriginAuthority.Port;
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
53tags.Add("server.port", pool.OriginAuthority.Port);