51 references to AcceptLanguage
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
147HeaderNames.AcceptLanguage,
Microsoft.AspNetCore.HeaderParsing (1)
CommonHeaders.cs (1)
35public static HeaderSetup<IReadOnlyList<StringWithQualityHeaderValue>> AcceptLanguage => new(HeaderNames.AcceptLanguage, StringWithQualityHeaderValueListParser.Instance, cacheable: true);
Microsoft.AspNetCore.HeaderParsing.Tests (1)
CommonHeadersTests.cs (1)
39Assert.Equal(HeaderNames.AcceptLanguage, CommonHeaders.AcceptLanguage.HeaderName);
Microsoft.AspNetCore.Http.Extensions (1)
RequestHeaders.cs (1)
87Headers.SetList(HeaderNames.AcceptLanguage, value);
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
20StringValues AcceptLanguage { get => this[HeaderNames.AcceptLanguage]; set => this[HeaderNames.AcceptLanguage] = value; }
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingOptions.cs (1)
37HeaderNames.AcceptLanguage,
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
400HeaderNames.AcceptLanguage,
Microsoft.AspNetCore.Server.HttpSys (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 2108if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.Ordinal)) 2215yield return HeaderNames.AcceptLanguage; 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2753HttpSysRequestHeader.AcceptLanguage => HeaderNames.AcceptLanguage,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestHeaderTests.cs (1)
308yield return (HttpSysRequestHeader.AcceptLanguage, HeaderNames.AcceptLanguage);
Microsoft.AspNetCore.Server.IIS (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 2108if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.Ordinal)) 2215yield return HeaderNames.AcceptLanguage; 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2753HttpSysRequestHeader.AcceptLanguage => HeaderNames.AcceptLanguage,
Microsoft.AspNetCore.Server.Kestrel.Core (20)
Internal\Http\HttpHeaders.Generated.cs (20)
287HeaderNames.AcceptLanguage, 3372if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 3391if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 4142if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 4155if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 5165if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 5186if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 6272if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 6293if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 7127array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _headers._AcceptLanguage); 7806nameStr = HeaderNames.AcceptLanguage; 7972nameStr = HeaderNames.AcceptLanguage; 8256nameStr = HeaderNames.AcceptLanguage; 8459_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _collection._headers._AcceptLanguage); 9980if (!TryGetUnknown(HeaderNames.AcceptLanguage, ref value)) 9989ValidateHeaderValueCharacters(HeaderNames.AcceptLanguage, value, EncodingSelector); 9990SetValueUnknown(HeaderNames.AcceptLanguage, value); 15677if (!TryGetUnknown(HeaderNames.AcceptLanguage, ref value)) 15686ValidateHeaderValueCharacters(HeaderNames.AcceptLanguage, value, EncodingSelector); 15687SetValueUnknown(HeaderNames.AcceptLanguage, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
147HeaderNames.AcceptLanguage,
Microsoft.AspNetCore.Shared.Tests (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 2108if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.Ordinal)) 2215yield return HeaderNames.AcceptLanguage; 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2753HttpSysRequestHeader.AcceptLanguage => HeaderNames.AcceptLanguage,