NAME
MojoX::Types - Types
SYNOPSIS
use MojoX::Types;
my $types = MojoX::Types->new;
DESCRIPTION
MojoX::Types is a container for MIME types.
ATTRIBUTES
types
my $map = $types->types;
$types = $types->types({png => 'image/png'});
METHODS
MojoX::Types inherits all methods from Mojo::Base and implements the follwing the ones.
type
my $type = $types->type('png');
$types = $types->type(png => 'image/png');