Plack::MIME(3pm)

Plack::MIME3pm

Mime type registry

Usage

  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] });

Overview

Plack::MIME is a simple MIME type registry for Plack applications. The selection of MIME types is based on Rack's Rack::Mime module.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

From libplack-perl 1.0051-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.