Packages

A simple and easy to use API created on top of the Mist web server

Current section

Files

Jump to
howdy src howdy mime.gleam
Raw

src/howdy/mime.gleam

/// Uses mimerl to file mime based on the file extention
pub external fn from_path(path: String) -> String =
"mimerl" "filename"
/// Uses mimerl to find the mime type based on the file extention
pub external fn from_extention(extention: String) -> String =
"mimerl" "extension"
/// Uses mimerl to find all the file extentions based on the mime type
pub external fn from_mime(mime: String) -> List(String) =
"mimerl" "mime_to_exts"