Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xsawyerx/dancer2-serializer-cbor

CBOR serializer for Dancer2
https://github.com/xsawyerx/dancer2-serializer-cbor

Last synced: 28 days ago
JSON representation

CBOR serializer for Dancer2

Awesome Lists containing this project

README

        

=pod

=encoding UTF-8

=head1 NAME

Dancer2::Serializer::CBOR - CBOR serializer for Dancer2

=head1 VERSION

version 0.000002

=head1 SYNOPSIS

package MyApp::API::CBOR;
use Dancer2;
set serializer => 'CBOR';

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

return { user => get_id($id) };
};

=head1 DESCRIPTION

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

It requires L.

=head1 METHODS

=head2 serialize

Serialize a Perl data structure to a CBOR structure.

=head2 deserialize

Deserialize a CBOR structure to a Perl data structure.

=head2 content_type

C.

=head1 CREDIT

The test is based on code David Zurborg has written.

=head1 SEE ALSO

=over 4

=item * L

=item * RFC7049

=back

=head1 AUTHOR

Sawyer X

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Sawyer X.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut