NAME
Dancer::Serializer::CBOR - serializer for handling CBOR data
VERSION
version 0.101
DESCRIPTION
This serializer allows to serialize and deserialize automatically the CBOR (Concise Binary Object Representation) structure.
SYNOPSIS
use Dancer;
set serializer => 'CBOR';
get '/view/user/:id' => sub {
my $id = params->{'id'};
return { user => get_id($id) };
};
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
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/zurborg/libdancer-serializer-cbor-perl/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
David Zurborg <zurborg@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by David Zurborg.
This is free software, licensed under:
The ISC License