3 implementations of Vary
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.Generated.cs (3)
2430StringValues IHeaderDictionary.Vary 9804StringValues IHeaderDictionary.Vary 16968StringValues IHeaderDictionary.Vary
25 writes to Vary
Microsoft.AspNetCore.Mvc.Core (1)
Filters\ResponseCacheFilterExecutor.cs (1)
78headers.Vary = VaryByHeader;
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
62_headers.Vary = "Accept-Encoding";
Microsoft.AspNetCore.OutputCaching.Tests (8)
OutputCacheMiddlewareTests.cs (2)
522context.HttpContext.Response.Headers.Vary = vary; 595context.HttpContext.Response.Headers.Vary = "HeaderB, heaDera";
OutputCachePolicyProviderTests.cs (1)
213context.HttpContext.Response.Headers.Vary = "*";
OutputCacheTests.cs (5)
307var builders = TestUtils.CreateBuildersWithOutputCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 699context.Response.Headers.Vary = HeaderNames.From; 748context.Response.Headers.Vary = HeaderNames.From; 865var builders = TestUtils.CreateBuildersWithOutputCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 889var builders = TestUtils.CreateBuildersWithOutputCaching(contextAction: context => context.Response.Headers.Vary = context.Request.Headers.Pragma);
Microsoft.AspNetCore.ResponseCaching.Tests (7)
ResponseCachingTests.cs (7)
269var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 292var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 645context.Response.Headers.Vary = HeaderNames.From; 698context.Response.Headers.Vary = HeaderNames.From; 822var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 848var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = context.Request.Headers.Pragma); 883var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = context.Request.Headers.Pragma);
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionBody.cs (1)
224headers.Vary = StringValues.Concat(headers.Vary, HeaderNames.AcceptEncoding);
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionBodyTest.cs (1)
20httpContext.Response.Headers.Vary = providedVaryHeader;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (5)
HeaderCollectionBenchmark.cs (1)
156headers.Vary = "Accept-Encoding";
Http2\HPackHeaderWriterBenchmark.cs (1)
38knownHeaders.Vary = "Vary!";
ResponseHeaderCollectionBenchmark.cs (1)
124headers.Vary = "Accept-Encoding";
ResponseHeadersWritingBenchmark.cs (2)
102responseHeaders.Vary = "Accept-Encoding"; 121responseHeaders.Vary = "Accept-Encoding";
ResponseCachingSample (1)
Startup.cs (1)
25context.Response.Headers.Vary = new string[] { "Accept-Encoding" };
4 references to Vary
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingPolicyProvider.cs (1)
101var varyHeader = response.Headers.Vary;
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionBody.cs (1)
224headers.Vary = StringValues.Concat(headers.Vary, HeaderNames.AcceptEncoding);
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionBodyTest.cs (1)
25Assert.Equal(expectedVaryHeader, httpContext.Response.Headers.Vary);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
HeaderCollectionBenchmark.cs (1)
275value = headers.Vary;