using System.Collections.Frozen;
using Microsoft.Net.Http.Headers;
namespace Chronos.Server.Storage;
/// Streams archive files (originals, proxies, thumbnails, exports) with Range, If-Range and conditional GET support.
public static class FileResponses
{
private static readonly FrozenDictionary Types = new Dictionary(StringComparer.OrdinalIgnoreCase)
{
[".jpg"] = "image/jpeg",
[".jpeg"] = "image/jpeg",
[".png"] = "image/png",
[".apng"] = "image/apng",
[".gif"] = "image/gif",
[".tif"] = "image/tiff",
[".tiff"] = "image/tiff",
[".dng"] = "image/x-adobe-dng",
[".heic"] = "image/heic",
[".heif"] = "image/heif",
[".webp"] = "image/webp",
[".avif"] = "image/avif",
[".mp4"] = "video/mp4",
[".mov"] = "video/quicktime",
[".avi"] = "video/x-msvideo",
// The admin panel's player (owner review 1, R9) plays what a browser's