Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2a9376a097
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (19 sloc) 0.639 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
MIME::Types
------------
A Perl 6 library that reads the mime.types file as used by
many Linux distributions, and web servers, and returns an object
that can be queried by either type or extension.

Example:

  use MIME::Types;
  my $mime = MIME::Types.new("/etc/mime.types");
  my $type = $mime.type('txt'); ## Returns: 'text/plain';
  my @known_extensions = $mime.extensions('application/vnd.ms-excel');
  ## Returns: [ 'xls', 'xlb', 'xlt' ]

An example mime.types is included in the doc/ directory, and is used by
the tests in t/.

= License =

Artistic 2.0=

= Author =

Timothy Totten
http://huri.net/
https://github.com/supernovus/
Something went wrong with that request. Please try again.