package magic-mime

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

Module Mime_typesSource

Database of file extensions to MIME types from RFC2045 onwards.

Sourceval 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.

Sourceval 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.