24 instantiations of StaticAssetResponseHeader
Microsoft.AspNetCore.StaticAssets (2)
Microsoft.AspNetCore.StaticAssets.Tests (22)
StaticAssetsIntegrationTests.cs (22)
83new TestResource("sample.txt", "Hello, World!", false, [new("Cache-Control", "immutable")]),
134new TestResource("sample.txt", "Hello, World!", false, [new("Cache-Control", "immutable")]),
186new TestResource("sample.txt", "Hello, World!", false, [new("Cache-Control", "immutable")]),
243new TestResource("sample.txt", "Hello, World!", false, [new("Cache-Control", "immutable")]),
503new ("Accept-Ranges", "bytes"),
504new("Content-Length", resource.Content.Length.ToString(CultureInfo.InvariantCulture)),
505new("Content-Type", GetContentType(filePath)),
506new ("ETag", $"\"{hash}\""),
507new("Last-Modified", lastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture)),
524new ("Accept-Ranges", "bytes"),
525new ("Content-Type", GetContentType(filePath)),
527new ("Content-Length", length.ToString(CultureInfo.InvariantCulture)),
528new ("ETag", $"W/\"{GetEtag(resource.Content)}\""),
529new ("ETag", $"\"{GetEtagForFile(compressedFilePath)}\""),
530new ("Last-Modified", lastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture)),
532new ("Content-Encoding", "gzip"),
533new ("Vary", "Accept-Encoding"),
582new ("Accept-Ranges", "bytes"),
583new("Content-Length", "Hello, World!".Length.ToString(CultureInfo.InvariantCulture)),
584new("Content-Type", GetContentType("sample.txt")),
585new ("ETag", $"\"{GetEtag("Hello, World!")}\""),
586new("Last-Modified", new DateTimeOffset(2023,03,03,0,0,0,TimeSpan.Zero).ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture))
12 references to StaticAssetResponseHeader
Microsoft.AspNetCore.StaticAssets (11)
Microsoft.AspNetCore.StaticAssets.Tests (1)