66 references to AcceptEncoding
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
146HeaderNames.AcceptEncoding,
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\ResourceCollectionUrlEndpoint.cs (1)
215context.Response.Headers[HeaderNames.Vary] = HeaderNames.AcceptEncoding;
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (9)
ContentEncodingNegotiatorTests.cs (9)
24httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 46httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 67httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 90httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 113httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 136httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 159httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 181httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 202httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\GrpcProtocolConstants.cs (1)
23HeaderNames.AcceptEncoding
Microsoft.AspNetCore.HeaderParsing (1)
CommonHeaders.cs (1)
30public static HeaderSetup<IReadOnlyList<StringWithQualityHeaderValue>> AcceptEncoding => new(HeaderNames.AcceptEncoding, StringWithQualityHeaderValueListParser.Instance, cacheable: true);
Microsoft.AspNetCore.HeaderParsing.Tests (1)
CommonHeadersTests.cs (1)
31Assert.Equal(HeaderNames.AcceptEncoding, CommonHeaders.AcceptEncoding.HeaderName);
Microsoft.AspNetCore.Http.Extensions (1)
RequestHeaders.cs (1)
72Headers.SetList(HeaderNames.AcceptEncoding, value);
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
17StringValues AcceptEncoding { get => this[HeaderNames.AcceptEncoding]; set => this[HeaderNames.AcceptEncoding] = value; }
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingOptions.cs (1)
36HeaderNames.AcceptEncoding,
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
399HeaderNames.AcceptEncoding,
Microsoft.AspNetCore.ResponseCompression (2)
ResponseCompressionBody.cs (2)
213if (string.Equals(varyValues[i], HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 224headers.Vary = StringValues.Concat(headers.Vary, HeaderNames.AcceptEncoding);
Microsoft.AspNetCore.ResponseCompression.Tests (2)
ResponseCompressionMiddlewareTest.cs (2)
1294if (value.Contains(HeaderNames.AcceptEncoding)) 1313if (value.Contains(HeaderNames.AcceptEncoding))
Microsoft.AspNetCore.Server.HttpSys (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 2098if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.Ordinal)) 2211yield return HeaderNames.AcceptEncoding; 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2752HttpSysRequestHeader.AcceptEncoding => HeaderNames.AcceptEncoding,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestHeaderTests.cs (1)
307yield return (HttpSysRequestHeader.AcceptEncoding, HeaderNames.AcceptEncoding);
Microsoft.AspNetCore.Server.IIS (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 2098if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.Ordinal)) 2211yield return HeaderNames.AcceptEncoding; 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2752HttpSysRequestHeader.AcceptEncoding => HeaderNames.AcceptEncoding,
Microsoft.AspNetCore.Server.Kestrel.Core (20)
Internal\Http\HttpHeaders.Generated.cs (20)
286HeaderNames.AcceptEncoding, 3363if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 3382if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4136if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 4149if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5155if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 5176if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6262if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 6283if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 7118array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _headers._AcceptEncoding); 7800nameStr = HeaderNames.AcceptEncoding; 7967nameStr = HeaderNames.AcceptEncoding; 8221nameStr = HeaderNames.AcceptEncoding; 8454_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _collection._headers._AcceptEncoding); 9962if (!TryGetUnknown(HeaderNames.AcceptEncoding, ref value)) 9971ValidateHeaderValueCharacters(HeaderNames.AcceptEncoding, value, EncodingSelector); 9972SetValueUnknown(HeaderNames.AcceptEncoding, value); 15659if (!TryGetUnknown(HeaderNames.AcceptEncoding, ref value)) 15668ValidateHeaderValueCharacters(HeaderNames.AcceptEncoding, value, EncodingSelector); 15669SetValueUnknown(HeaderNames.AcceptEncoding, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
146HeaderNames.AcceptEncoding,
Microsoft.AspNetCore.Shared.Tests (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 2098if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.Ordinal)) 2211yield return HeaderNames.AcceptEncoding; 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2752HttpSysRequestHeader.AcceptEncoding => HeaderNames.AcceptEncoding,