NAME
    Dancer::Serializer::MessagePack - MessagePack serializer for Dancer


VERSION
    version 0.01

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

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

DESCRIPTION
    This serializer serializes your data structure to MessagePack format. 
    
    It uses Data::MessagePack's "pack" and "unpack" functions.

SUBROUTINES/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

  deserialize
    Deserializes a given data from MessagePack format.

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

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

  content_type
    Returns the content type which is text/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.