81 references to Host
CodeGenerator (4)
src\Servers\Kestrel\shared\KnownHeaders.cs (4)
34HeaderNames.Host, 96HeaderNames.Host, 136HeaderNames.Host 155HeaderNames.Host,
InMemory.FunctionalTests (9)
Http2\Http2StreamTests.cs (4)
614Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 645Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 676Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 707Assert.Equal("def", _decodedHeaders[HeaderNames.Host]);
Http2\Http2TestBase.cs (1)
1360Assert.True(_receivedHeaders.TryGetValue(HeaderNames.Host, out var host), header.Key);
Http3\Http3StreamTests.cs (4)
393Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 416Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 439Assert.Equal("def", responseHeaders[HeaderNames.Host]); 462Assert.Equal("def", responseHeaders[HeaderNames.Host]);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\GrpcProtocolConstants.cs (1)
22HeaderNames.Host,
Microsoft.AspNetCore.HeaderParsing (1)
CommonHeaders.cs (1)
20public static HeaderSetup<HostHeaderValue> Host => new(HeaderNames.Host, HostHeaderValueParser.Instance);
Microsoft.AspNetCore.HeaderParsing.Tests (1)
CommonHeadersTests.cs (1)
15Assert.Equal(HeaderNames.Host, CommonHeaders.Host.HeaderName);
Microsoft.AspNetCore.HostFiltering.Tests (3)
HostFilteringMiddlewareTests.cs (3)
59ctx.Request.Headers.Remove(HeaderNames.Host); 65Assert.False(c.Request.Headers.TryGetValue(HeaderNames.Host, out var host)); 106Assert.True(c.Request.Headers.TryGetValue(HeaderNames.Host, out var host));
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
134StringValues Host { get => this[HeaderNames.Host]; set => this[HeaderNames.Host] = value; }
Microsoft.AspNetCore.HttpLogging (3)
HttpLoggingOptions.cs (1)
47HeaderNames.Host,
W3CLoggerOptions.cs (1)
132clonedSet.Remove(HeaderNames.Host);
W3CLoggingMiddleware.cs (1)
146if (request.Headers.TryGetValue(HeaderNames.Host, out var host))
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
435HeaderNames.Host,
Microsoft.AspNetCore.Rewrite (2)
ApacheModRewrite\ServerVariables.cs (1)
30return new HeaderSegment(HeaderNames.Host);
IISUrlRewrite\ServerVariables.cs (1)
46managedVariableThunk = () => new HeaderSegment(HeaderNames.Host);
Microsoft.AspNetCore.Server.HttpSys (8)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
25HeaderNames.Host,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1796if (string.Equals(key, HeaderNames.Host, StringComparison.Ordinal)) 2283yield return HeaderNames.Host; 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2770HttpSysRequestHeader.Host => HeaderNames.Host,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestHeaderTests.cs (2)
192Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 220Assert.Contains(HeaderNames.Host, requestHeaders.Keys);
Microsoft.AspNetCore.Server.HttpSys.Tests (5)
RequestHeaderTests.cs (5)
35Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 56Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 156Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 180Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 328Assert.Contains(HeaderNames.Host, requestHeaders.Keys);
Microsoft.AspNetCore.Server.IIS (8)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
25HeaderNames.Host,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1796if (string.Equals(key, HeaderNames.Host, StringComparison.Ordinal)) 2283yield return HeaderNames.Host; 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2770HttpSysRequestHeader.Host => HeaderNames.Host,
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\Http\HttpHeaders.Generated.cs (19)
327HeaderNames.Host, 2642if (ReferenceEquals(HeaderNames.Host, key)) 2670if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 3639if (ReferenceEquals(HeaderNames.Host, key)) 3658if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 4362if (ReferenceEquals(HeaderNames.Host, key)) 4393if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 5469if (ReferenceEquals(HeaderNames.Host, key)) 5500if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 7046array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Host, _headers._Host); 7546nameStr = HeaderNames.Host; 8029nameStr = HeaderNames.Host; 8414_current = new KeyValuePair<string, StringValues>(HeaderNames.Host, _collection._headers._Host); 10268if (!TryGetUnknown(HeaderNames.Host, ref value)) 10277ValidateHeaderValueCharacters(HeaderNames.Host, value, EncodingSelector); 10278SetValueUnknown(HeaderNames.Host, value); 16307if (!TryGetUnknown(HeaderNames.Host, ref value)) 16316ValidateHeaderValueCharacters(HeaderNames.Host, value, EncodingSelector); 16317SetValueUnknown(HeaderNames.Host, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
src\Servers\Kestrel\shared\KnownHeaders.cs (4)
34HeaderNames.Host, 96HeaderNames.Host, 136HeaderNames.Host 155HeaderNames.Host,
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
25HeaderNames.Host,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1796if (string.Equals(key, HeaderNames.Host, StringComparison.Ordinal)) 2283yield return HeaderNames.Host; 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2770HttpSysRequestHeader.Host => HeaderNames.Host,