6 implementations of Host
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
542public StringValues Host
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
542public StringValues Host
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.Generated.cs (3)
652StringValues IHeaderDictionary.Host 10263StringValues IHeaderDictionary.Host 16302StringValues IHeaderDictionary.Host
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
542public StringValues Host
9 writes to Host
InMemory.FunctionalTests (2)
Http2\Http2TestBase.cs (1)
364context.Response.Headers.Host = context.Request.Headers.Host;
Http3\Http3TestBase.cs (1)
111context.Response.Headers.Host = context.Request.Headers.Host;
Microsoft.AspNetCore.HostFiltering.Tests (4)
HostFilteringMiddlewareTests.cs (4)
100ctx.Request.Headers.Host = ""; 157ctx.Request.Headers.Host = hosturl; 209ctx.Request.Headers.Host = hosturl; 248ctx.Request.Headers.Host = currentHost;
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
118set { Headers.Host = value.ToUriComponent(); }
Microsoft.AspNetCore.Http.Extensions (1)
RequestHeaders.cs (1)
222Headers.Host = value.ToUriComponent();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
HttpRequestHeadersTests.cs (1)
179headers.Host = v1;
14 references to Host
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
22await context.Response.WriteAsync("Host: " + context.Request.Headers.Host + Environment.NewLine);
AzureAppServicesSample (1)
Startup.cs (1)
33await context.Response.WriteAsync("Host: " + context.Request.Headers.Host + Environment.NewLine);
InMemory.FunctionalTests (3)
BadHttpRequestTests.cs (1)
166receivedHost = context.Request.Headers.Host;
Http2\Http2TestBase.cs (1)
364context.Response.Headers.Host = context.Request.Headers.Host;
Http3\Http3TestBase.cs (1)
111context.Response.Headers.Host = context.Request.Headers.Host;
Microsoft.AspNetCore.HostFiltering (1)
HostFilteringMiddleware.cs (1)
84var host = context.Request.Headers.Host.ToString();
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
117get { return HostString.FromUriComponent(Headers.Host.ToString()); }
Microsoft.AspNetCore.Http.Extensions (1)
RequestHeaders.cs (1)
218return HostString.FromUriComponent(Headers.Host.ToString());
Microsoft.AspNetCore.Http.Tests (1)
HeaderDictionaryTests.cs (1)
130Assert.Same(Array.Empty<string>(), (string[])asIHeaderDictionary.Host);
Microsoft.AspNetCore.HttpOverrides.Tests (3)
ForwardedHeadersMiddlewareTest.cs (3)
501Assert.Equal(hostHeader, context.Request.Headers.Host); 552Assert.NotEqual<string>(hostHeader, context.Request.Headers.Host); 588Assert.Equal("bar.foo.com:432", context.Request.Headers.Host);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
HttpRequestHeadersTests.cs (1)
114Assert.Same(Array.Empty<string>(), (string[])headers.Host);
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
784ctx.Response.WriteAsync(ctx.Request.Headers.Host);