package metadata

  1. Overview
  2. Docs

Module Metadata.MIMESource

Guess the MIME type of a file.

Sourceval of_string : string -> string

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

Sourceval of_file : string -> string

Same as of_string but takes a file name as argument.