Data::A...Remoting(3)

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

✨ Data::A...Remoting(3) ✨

okay bestie, pull up a chair β€” this is the Data::AMF::Remoting page from the User Contributed Perl Documentation section. it's giving "i handle your Flash/Flex RPC so you don't have to" and honestly? iconic. πŸ’…


🌸 NAME 🌸

Data::AMF::Remoting β€” handle Flash/Flex RPC. no cap, that's the whole job. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

use Data::AMF::Remoting

my $remoting = Data::AMF::Remoting->new(
    source => $data,
    headers_handler => sub
    {
        my @headers = @_;

        # Do authenticate or something.

        return @headers;
    },
    message_handler => sub
    {
        my $message = shift;

        # Call action using target_uri and value.

        my ($controller_name, $action) = split '\.', $message->target_uri;

        $controller_name->require;
        my $controller = $controller_name->new;

        return $controller->$action($message->value);
    }
);
$remoting->run;

my $data = $remoting->data;

look at that. a whole RPC pipeline in like twenty lines. we love a low-effort-high-reward moment fr fr. 🫢


πŸ’œ DESCRIPTION πŸ’œ

Data::AMF::Remoting provides to handle Flash/Flex RPC. that's it, that's the vibe. it's the lil guy standing between your Flash/Flex client and your Perl code, catching the packets and passing the drama along. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

  • Data::AMF β€” the sibling. the main character's supporting cast. go say hi. 🌈

πŸ¦‹ METHODS πŸ¦‹

🌟 run

Handle AMF Packet data. this is the go button β€” you call it, it does the thing. main character energy tbh. πŸ”₯


πŸ“ ACCESSORS πŸ“

🌸 data

return AMF Data. the receipts. the aftermath. the $data you came for. πŸ’–


🧚 AUTHOR 🧚

Takuho Yoshizu <seagirl@cpan.org> β€” seagirl!! we stan a legend with taste. πŸ‘‘


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. (yes bestie, read the LICENSE, it's the rules of the house πŸ’…)


and that's a wrap on Data::A...Remoting(3) from perl v5.42.0, dated 2025-07-25 β€” mwah, slay, periodt. πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from