Mojolicious::Types
НАЗВАНИЕ
Mojolicious::Types - MIME Types
КРАТКИЙ ОБЗОР
use Mojolicious::Types;
ОПИСАНИЕ
Mojolicious::Types is a container for MIME types.
АТРИБУТЫ
Mojolicious::Types implements the following attributes.
types
my $map = $types->types; $types = $types->types({png => 'image/png'});
List of MIME types.
МЕТОДЫ
Mojolicious::Types inherits all methods from Mojo::Base and implements the following ones.
type
my $type = $types->type('png'); $types = $types->type(png => 'image/png');
Get or set MIME type for file extension.