mojolicious::types(3pm) debian man page | unix.com

Man Page: mojolicious::types

Operating Environment: debian

Section: 3pm

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::makefile(3pm) - debian
mojolicious::plugin::i18n(3pm) - debian
mojolicious::plugin::mount(3pm) - debian
mojolicious::plugin::podrenderer(3pm) - debian
mojolicious::static(3pm) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Detecting unused variables...
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?
My first PERL incarnation... Audio Oscillograph