Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 372 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 372 Bytes

Zig Module for MIME Types

Synopsis

const std = @import("std");
const mime = @import("mime");

test "html smoke test" {
    const mime_type = mime.extension_map.get(".html").?;
    try std.testing.expectEqualStrings("text/html", @tagName(mime_type));
}

test "bogus extension" {
    try std.testing.expect(mime.extension_map.get(".sillybogo") == null);
}