table of contents
other versions
- wheezy 0.9989-1+deb7u1
- wheezy-backports 1.0030-1~bpo70+1
- jessie 1.0033-1
- testing 1.0042-1
- unstable 1.0042-1
Plack::MIME(3pm) | User Contributed Perl Documentation | Plack::MIME(3pm) |
NAME¶
Plack::MIME - MIME type registrySYNOPSIS¶
use Plack::MIME; my $mime = Plack::MIME->mime_type(".png"); # image/png # register new type(s) Plack::MIME->add_type(".foo" => "application/x-foo"); # Use MIME::Types as a fallback use MIME::Types 'by_suffix'; Plack::MIME->set_fallback(sub { (by_suffix $_[0])[0] });
DESCRIPTION¶
Plack::MIME is a simple MIME type registry for Plack applications. The selection of MIME types is based on Rack's Rack::Mime module.SEE ALSO¶
Rack::Mime MIME::Types2014-04-05 | perl v5.14.2 |