debian man page for mojolicious::types

Query: mojolicious::types

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Mojolicious::Types(3pm) 				User Contributed Perl Documentation				   Mojolicious::Types(3pm)

NAME
Mojolicious::Types - MIME types
SYNOPSIS
use Mojolicious::Types; my $types = Mojolicious::Types->new;
DESCRIPTION
Mojolicious::Types is a container for MIME types.
ATTRIBUTES
Mojolicious::Types implements the following attributes. "types" my $map = $types->types; $types = $types->types({png => 'image/png'}); List of MIME types.
METHODS
Mojolicious::Types inherits all methods from Mojo::Base and implements the following ones. "detect" my $ext = $types->detect('application/json;q=9'); Detect file extensions from "Accept" header value. Unspecific values that contain more than one MIME type are currently ignored, since browsers often don't really know what they actually want. "type" my $type = $types->type('png'); $types = $types->type(png => 'image/png'); $types = $types->type(json => [qw(application/json text/x-json)]); Get or set MIME types for file extension, alternatives are only used for detection.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Types(3pm)
Related Man Pages
mojolicious::command::generate(3pm) - debian
mojolicious::command::generate::plugin(3pm) - debian
mojolicious::plugin::mount(3pm) - debian
mojolicious::sessions(3pm) - debian
mojolicious::static(3pm) - debian
Similar Topics in the Unix Linux Community
How can I do this in VI editor?
Detecting unused variables...
How to copy a column of multiple files and paste into new excel file (next to column)?
My first PERL incarnation... Audio Oscillograph