From f7d265daa292cc16e8a38970ba0c4fb9f4d8e0ca Mon Sep 17 00:00:00 2001 From: Callum Todd Date: Sun, 17 Nov 2024 12:36:39 +0000 Subject: [PATCH] Add application/wasm MediaType (#613) --- Sources/Hummingbird/HTTP/MediaType.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Hummingbird/HTTP/MediaType.swift b/Sources/Hummingbird/HTTP/MediaType.swift index cb5c6e09..436e6c9a 100644 --- a/Sources/Hummingbird/HTTP/MediaType.swift +++ b/Sources/Hummingbird/HTTP/MediaType.swift @@ -281,6 +281,8 @@ extension MediaType { public static var applicationTar: Self { .init(type: .application, subType: "x-tar") } /// Microsoft Visio public static var applicationVsd: Self { .init(type: .application, subType: "vnd.visio") } + /// WebAssembly + public static var applicationWasm: Self { .init(type: .application, subType: "wasm") } /// XHTML public static var applicationXhtml: Self { .init(type: .application, subType: "xhtml+xml") } /// Microsoft Excel @@ -445,6 +447,7 @@ extension MediaType { "ttf": .fontTtf, "txt": .textPlain, "vsd": .applicationVsd, + "wasm": .applicationWasm, "wav": .audioWave, "weba": .audioWebm, "webm": .videoWebm,