DOKK / manpages / debian 10 / libdata-amf-perl / Data::AMF::Remoting.3pm.en
Data::AMF::Remoting(3pm) User Contributed Perl Documentation Data::AMF::Remoting(3pm)

Data::AMF::Remoting - handle Flash/Flex RPC.

    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;

Data::AMF::Remoting provides to handle Flash/Flex RPC.

Data::AMF

Handle AMF Packet data.

return AMF Data

Takuho Yoshizu <seagirl@cpan.org>

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.

2016-12-04 perl v5.24.1