Movatterモバイル変換


[0]ホーム

URL:


 / 
Plack-1.0051
River stage four • 770 direct dependents • 1921 total dependents
/Plack::MIME

NAME

Plack::MIME - MIME type registry

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 fallbackuse 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::MimeMIME::Types

Module Install Instructions

To install Plack, copy and paste the appropriate command in to your terminal.

cpanm

cpanm Plack

CPAN shell

perl -MCPAN -e shellinstall Plack

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp