package magic-mime

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Database of file extensions to MIME types from RFC2045 onwards.

val map_extension : string -> string

map_extension e converts the file extension e into a MIME type, defaulting to application/octet-stream if it is unknown.

val map_file : string -> string

map_file f converts the filename f into a MIME type, defaulting to application/octet-stream if it is unknown.

OCaml

Innovation. Community. Security.