13 writes to Host
Interop.FunctionalTests (7)
Http2\Http2RequestTests.cs (1)
293request.Headers.Host = "localhost2";
Http3\Http3TlsTests.cs (3)
59request.Headers.Host = "testhost"; 325request.Headers.Host = "testhost"; 476request.Headers.Host = "testhost";
HttpClientHttp2InteropTests.cs (3)
1062request.Headers.Host = "localhost"; // The default Host header has a random port value which can cause the length to vary. 1171request.Headers.Host = "localhost"; // The default Host has a random port value that causes the length to very. 1567request.Headers.Host = "xn--md7a.xn--c1y"; // Punycode
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
158requestMessage.Headers.Host = uri.Authority;
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
791request.Headers.Host = "otherhost:5678";
Microsoft.Extensions.ServiceDiscovery (2)
Http\ResolvingHttpClientHandler.cs (1)
27request.Headers.Host ??= result.Features.Get<IHostNameFeature>()?.HostName;
Http\ResolvingHttpDelegatingHandler.cs (1)
48request.Headers.Host ??= result.Features.Get<IHostNameFeature>()?.HostName;
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
785tunnelRequest.Headers.Host = $"{_originAuthority.IdnHost}:{_originAuthority.Port}"; // This specifies destination host/port to connect to
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1186_sendRequestMessage.Headers.Host = Host;
8 references to Host
Microsoft.AspNetCore.TestHost.Tests (1)
RequestBuilderTests.cs (1)
19Assert.Equal("MyHost:90", request.Headers.Host.ToString());
System.Net.Http (7)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (2)
122if (!isProxyAuth && request.HasHeaders && request.Headers.Host != null) 125hostName = request.Headers.Host;
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1491if (request.HasHeaders && request.Headers.Host is string host)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
626if (request.HasHeaders && request.Headers.Host is string host)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
320if (!request.HasHeaders || request.Headers.Host is not string host) 347if (!request.HasHeaders || request.Headers.Host is null)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
270string? hostHeader = request.Headers.Host;