api
main.ch
Declarations in main.ch
1 declarationsmime
Declarations
Public only
mime#
Publicnamespace
namespace mime
mime — Content-type detection by file extension.
get_type#
Publicfunction
func get_type(ext : *char) : string_view
Look up a MIME content-type string by file extension (including the dot).
extension#
Publicfunction
func extension(path : *char) : string
Extract the file extension from a path (including the dot), or "" if none.
is_image#
Publicfunction
func is_image(content_type : *char) : bool
Check if a MIME type is an image type.