Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xsawyerx/dancer2-serializer-cbor
- Owner: xsawyerx
- Created: 2014-11-02T10:23:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-14T21:18:35.000Z (about 8 years ago)
- Last Synced: 2024-10-13T11:37:44.456Z (about 1 month ago)
- Language: Perl
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
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