48 references to Vary
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
236HeaderNames.Vary,
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\ResourceCollectionUrlEndpoint.cs (1)
215context.Response.Headers[HeaderNames.Vary] = HeaderNames.AcceptEncoding;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
92context.Response.Headers.Append(HeaderNames.Vary, HeaderNames.ContentEncoding);
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (9)
ContentEncodingNegotiatorTests.cs (9)
31Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 52Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 74Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 97Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 120Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 143Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 166Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 187Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 209Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader));
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
205headers.Append(HeaderNames.Vary, "Origin");
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
245StringValues Vary { get => this[HeaderNames.Vary]; set => this[HeaderNames.Vary] = value; }
Microsoft.AspNetCore.Mvc.Core (1)
Filters\ResponseCacheFilterExecutor.cs (1)
72headers.Remove(HeaderNames.Vary);
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
463HeaderNames.Vary,
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheMiddlewareTests.cs (1)
599Assert.Equal(new StringValues(new[] { "HeaderB, heaDera" }), context.CachedResponse.FindHeader(HeaderNames.Vary));
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
256var varyHeaders = new StringValues(headers.GetCommaSeparatedValues(HeaderNames.Vary));
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionBody.cs (1)
208var varyValues = headers.GetCommaSeparatedValues(HeaderNames.Vary);
Microsoft.AspNetCore.ResponseCompression.Tests (3)
ResponseCompressionMiddlewareTest.cs (3)
1292foreach (var value in response.Headers.GetValues(HeaderNames.Vary)) 1311foreach (var value in response.Headers.GetValues(HeaderNames.Vary)) 1323Assert.False(response.Headers.Contains(HeaderNames.Vary));
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
680|| response.Headers.ContainsKey(HeaderNames.Vary)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
53HeaderNames.Vary,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning,
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
53HeaderNames.Vary,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning,
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http\HttpHeaders.Generated.cs (17)
364HeaderNames.Vary, 2435if (!TryGetUnknown(HeaderNames.Vary, ref value)) 2444SetValueUnknown(HeaderNames.Vary, value); 9822ValidateHeaderValueCharacters(HeaderNames.Vary, value, EncodingSelector); 10941if (ReferenceEquals(HeaderNames.Vary, key)) 10969if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 11731if (ReferenceEquals(HeaderNames.Vary, key)) 11751if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 12336if (ReferenceEquals(HeaderNames.Vary, key)) 12368if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 13228if (ReferenceEquals(HeaderNames.Vary, key)) 13260if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 14760array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _headers._Vary); 15458_current = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _collection._headers._Vary); 16973if (!TryGetUnknown(HeaderNames.Vary, ref value)) 16982ValidateHeaderValueCharacters(HeaderNames.Vary, value, EncodingSelector); 16983SetValueUnknown(HeaderNames.Vary, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
236HeaderNames.Vary,
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
53HeaderNames.Vary,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning,