75 references to ContentEncoding
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
240HeaderNames.ContentEncoding,
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\ResourceCollectionUrlEndpoint.cs (1)
214context.Response.Headers[HeaderNames.ContentEncoding] = "gzip";
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
92context.Response.Headers.Append(HeaderNames.Vary, HeaderNames.ContentEncoding);
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (16)
ContentEncodingNegotiatorTests.cs (16)
29Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 32Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 51Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 72Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 75Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 95Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 98Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 118Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 121Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 141Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 144Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 164Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 167Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 186Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 207Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 210Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray());
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
74StringValues ContentEncoding { get => this[HeaderNames.ContentEncoding]; set => this[HeaderNames.ContentEncoding] = value; }
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingOptions.cs (1)
41HeaderNames.ContentEncoding,
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
418HeaderNames.ContentEncoding,
Microsoft.AspNetCore.RequestDecompression (1)
DefaultRequestDecompressionProvider.cs (1)
52context.Request.Headers.Remove(HeaderNames.ContentEncoding);
Microsoft.AspNetCore.RequestDecompression.Tests (3)
DefaultRequestDecompressionProviderTests.cs (3)
29httpContext.Request.Headers.Add(HeaderNames.ContentEncoding, contentEncoding); 82httpContext.Request.Headers.Add(HeaderNames.ContentEncoding, contentEncoding); 110httpContext.Request.Headers.Add(HeaderNames.ContentEncoding, contentEncodings);
Microsoft.AspNetCore.ResponseCompression (2)
ResponseCompressionProvider.cs (2)
182if (context.Response.Headers.ContainsKey(HeaderNames.ContentEncoding)) 184_logger.NoCompressionDueToHeader(HeaderNames.ContentEncoding);
Microsoft.AspNetCore.Server.HttpSys (9)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
37HeaderNames.ContentEncoding,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
42HeaderNames.ContentEncoding, HeaderNames.ContentType, HeaderNames.ContentRange, HeaderNames.Trailer
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 2120if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.Ordinal)) 2235yield return HeaderNames.ContentEncoding; 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2758HttpSysRequestHeader.ContentEncoding => HeaderNames.ContentEncoding,
Microsoft.AspNetCore.Server.IIS (9)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
37HeaderNames.ContentEncoding,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
42HeaderNames.ContentEncoding, HeaderNames.ContentType, HeaderNames.ContentRange, HeaderNames.Trailer
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 2120if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.Ordinal)) 2235yield return HeaderNames.ContentEncoding; 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2758HttpSysRequestHeader.ContentEncoding => HeaderNames.ContentEncoding,
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http\HttpHeaders.Generated.cs (17)
305HeaderNames.ContentEncoding, 1993if (!TryGetUnknown(HeaderNames.ContentEncoding, ref value)) 2002SetValueUnknown(HeaderNames.ContentEncoding, value); 9270ValidateHeaderValueCharacters(HeaderNames.ContentEncoding, value, EncodingSelector); 11405if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 11451if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12062if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 12093if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12851if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 12902if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 13743if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 13794if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 14589array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _headers._ContentEncoding); 15344_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _collection._headers._ContentEncoding); 16001if (!TryGetUnknown(HeaderNames.ContentEncoding, ref value)) 16010ValidateHeaderValueCharacters(HeaderNames.ContentEncoding, value, EncodingSelector); 16011SetValueUnknown(HeaderNames.ContentEncoding, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
240HeaderNames.ContentEncoding,
Microsoft.AspNetCore.Shared.Tests (9)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
37HeaderNames.ContentEncoding,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
42HeaderNames.ContentEncoding, HeaderNames.ContentType, HeaderNames.ContentRange, HeaderNames.Trailer
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 2120if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.Ordinal)) 2235yield return HeaderNames.ContentEncoding; 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2758HttpSysRequestHeader.ContentEncoding => HeaderNames.ContentEncoding,
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDescriptorExtensions.cs (1)
59if (string.Equals(selector.Name, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase))