The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MojoX::Types - Types

SYNOPSIS

    use MojoX::Types;

    my $types = MojoX::Types->new;

DESCRIPTION

MojoX::Types is a container for MIME types.

ATTRIBUTES

MojoX::Types implements the following 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');