package metadata

  1. Overview
  2. Docs

Guess the MIME type of a file.

val of_string : string -> string

Guess the MIME type from file contents. Raises Not_found if none was found.

val of_file : string -> string

Same as of_string but takes a file name as argument.

OCaml

Innovation. Community. Security.