NAME

Dancer::Serializer::CBOR - serializer for handling CBOR data

VERSION

Version 0.100

SYNOPSIS

use Dancer;

set serializer => 'CBOR';

get '/view/user/:id' => sub {
    my $id = params->{'id'};
    return { user => get_id($id) };
};

DESCRIPTION

This serializer allows to serialize and deserialize automatically the CBOR (Concise Binary Object Representation) structure.

METHODS

serialize

Serialize a data structure to a concise binary object representation.

deserialize

Deserialize a concise binary object representation to a data structure.

content_type

Return 'application/cbor'

SEE ALSO

AUTHOR

David Zurborg, <zurborg@cpan.org>

BUGS

Please report any bugs or feature requests at https://github.com/zurborg/libdancer-serializer-cbor-perl/issues/new.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Dancer::Serializer::CBOR

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2014 David Zurborg, all rights reserved.

This program is released under the ISC license.