Data::AMF::Message(3)

πŸ“¦
version 0.09 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

Data::AMF::Message β€” it's the AMF Message class, bestie. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

okay so here's how you actually use this thing, no cap:

use Data::AMF::Packet;

# get message
my $packet   = Data::AMF::Packet->deserialize($amf_packet);
my $messages = $packet->messages;

# do something about it
my $first_request = $messages->[0];

# and return response
my $response = $first_request->result($perl_object_you_want_to_return);

like… deserialize the packet, grab the messages, pull the first request, and hand back a response. main character energy fr fr. πŸ‘‘


🌸 DESCRIPTION 🌸

So Data::AMF::Message is an object class for AMF Packet Message. That's it, that's the whole description, and honestly? It ate. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

  • Data::AMF::Packet
  • Catalyst::Controller::FlashRemoting

go read those too, iykyk 🫢


⭐ METHODS ⭐

🌈 new

Create a brand new Data::AMF::Message object. fresh out the box, literally. ✨

πŸ’œ result($result)

Returns a normal response AMF Message object, responding to the current request of the AMF Message. πŸŽ€

πŸ“ error($error)

Returns an error response AMF Message object, responding to the current request of the AMF Message. when things go sideways, this is your girl. 😭


πŸ‘‘ AUTHOR πŸ‘‘

Daisuke Murase <typester@cpan.org>

iconic. we stan. πŸ’–


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

The full text of the license can be found in the LICENSE file included with this module.

fr fr, read the LICENSE file, it's giving legally binding bestie behavior 🫢

and that's a wrap!! this page is from perl v5.42.0, dated 2025-07-25, and it lives in the User Contributed Perl Documentation section of the manual. slay, go build something cute with it πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from