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