GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLACK::MIME (3)

.ds Aq ’

NAME

Plack::MIME - MIME type registry

CONTENTS

SYNOPSIS



  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::Types
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLACK::MIME (3) 2015-06-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.