Daisuke Maki > Mvalve-0.00014 > Mvalve::Message

Download:
Mvalve-0.00014.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Mvalve::Message - A Message Object

SYNOPSIS ^

  use Mvalve::Message;

  my $message = Mvalve::Message->new(
    headers => {
      from => 'me',
      to   => 'you',
    },
    content => {
      random => 'content',
    }
  );

  my $serialized   = $message->serialize;
  my $materialized = Mvalve::Message->deserialize($serialized);

METHODS ^

BUILD

Custom BUILD() for Moose

SERIALIZER

Returns the serializer object to use

serialize

Serializes the message

deserialize

Deserializes a packed structure to a message

syntax highlighting: