23 instantiations of StaticAssetResponseHeader
Microsoft.AspNetCore.StaticAssets (2)
Microsoft.AspNetCore.StaticAssets.Tests (21)
StaticAssetsIntegrationTests.cs (21)
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", $"\"{GetEtagForFile(compressedFilePath)}\""),
529new ("Last-Modified", lastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture)),
531new ("Content-Encoding", "gzip"),
532new ("Vary", "Accept-Encoding"),
581new ("Accept-Ranges", "bytes"),
582new("Content-Length", "Hello, World!".Length.ToString(CultureInfo.InvariantCulture)),
583new("Content-Type", GetContentType("sample.txt")),
584new ("ETag", $"\"{GetEtag("Hello, World!")}\""),
585new("Last-Modified", new DateTimeOffset(2023,03,03,0,0,0,TimeSpan.Zero).ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture))
13 references to StaticAssetResponseHeader
Microsoft.AspNetCore.StaticAssets (12)
Microsoft.AspNetCore.StaticAssets.Tests (1)