Data::AMF::Message(3)
π 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::PacketCatalyst::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. π
π§ COPYRIGHT π§
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
- fedora 43: perl-Data-AMF 0.09-41.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms