NAME

Raisin::Decoder - A helper for Raisin::Middleware::Formatter over decoder modules.

SYNOPSIS

my $dec = Raisin::Decoder->new;
$dec->register(xml => 'Some::XML::Parser');
$dec->for('json');
$dec->media_types_map_flat_hash;

DESCRIPTION

Provides an easy interface to use and register decoders.

The interface is identical to Raisin::Encoder.

METHODS

builtin

Returns a list of encoders which are bundled with Raisin. They are: Raisin::Encoder::JSON, Raisin::Encoder::YAML.

AUTHOR

Artur Khabibullin - rtkh <at> cpan.org

LICENSE

This module and all the modules in this package are governed by the same license as Perl itself.