Nikhil > Dancer-Serializer-Messagepack-0.01 > Dancer::Serializer::MessagePack

Download:
Dancer-Serializer-Messagepack-0.01.zip

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Dancer::Serializer::MessagePack

DESCRIPTION ^

    This serializer serializes your data structure to MessagePack format.

    It uses Data::MessagePack "pack" and "unpack" functions.

IMPLEMENTS ^

Dancer::Serializer::Abstract

SYNOPSIS ^

    # in your Dancer app:
    setting serializer => 'MessagePack';

    # or in your Dancer config file:
    serializer: 'MessagePack'

METHODS ^

init

    An initializer that is called automatically by Dancer.

    Runs "loaded".

loaded

    Lazily loads Data::MessagePack and imports the appropriate functions.

serialize

    Serializes a given data to MessagePack format

to_msgpack

    Helper function to create a new Dancer::Serializer::MessagePack object and
    run "serialize".

deserialize

    Deserializes a given data from MessagePack format.

from_msgpack

    Helper function to create a new Dancer::Serializer::MessagePack object and
    run "deserialize".

content_type

    Returns the content type which is application/x-msgpack.

SEE ALSO ^

    Data::MessagePack
    https://github.com/msgpack/msgpack-perl

AUTHOR ^

    Nikhil Mulley <mnikhil@cpan.org>

COPYRIGHT AND LICENSE ^

    This software is copyright (c) 2013 by Nikhil Mulley.

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