package magic-mime
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=90ec249b7654d33b1589b82476ab79eebb6106ec2ab586579e3ed5c3b351141f
md5=bd05c33aee8a461f63c23c3d0515d224
Description
This library contains a database of MIME types that maps filename extensions
into MIME types suitable for use in many Internet protocols such as HTTP or
e-mail. It is generated from the mime.types file found in Unix systems, but
has no dependency on a filesystem since it includes the contents of the
database as an ML datastructure.
For example, here's how to lookup MIME types in the [utop] REPL:
#require "magic-mime";;
Magic_mime.lookup "/foo/bar.txt";;
- : bytes = "text/plain"
Magic_mime.lookup "bar.css";;
- : bytes = "text/css"
More information:
Added to opam-repository:
README
ocaml-magic-mime
This library contains a database of MIME types that maps filename extensions into MIME types suitable for use in many Internet protocols such as HTTP or e-mail. It is generated from the mime.types file found in Unix systems, but has no dependency on a filesystem since it includes the contents of the database as an ML datastructure.
For example, here's how to lookup MIME types in the [utop] REPL:
#require "magic-mime";;
Magic_mime.lookup "/foo/bar.txt";;
- : bytes = "text/plain"
Magic_mime.lookup "bar.css";;
- : bytes = "text/css"More information:
Dev Dependencies
None
Optional Dependencies
None
Used by (14)
- cohttp-async
- cohttp-lwt-unix
- cohttp-mirage
- cowabloga
- dream
- email_message
- learn-ocaml
-
liquidsoap
>= "2.3.3" -
liquidsoap-core
>= "2.2.4-1" - ojs-base
- opium
- piaf
- simple_httpd
- slipshow
Conflicts
None
Build status
Results of building magic-mime with each compiler on check.ci.ocaml.org, run of against opam-repository 6e2873f. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure