Apache-ExtDirect

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

Apache-ExtDirect version 0.90
=============================

This module implements RPC::ExtDirect gateway for Apache2/mod_perl2
environment.

RPC::ExtDirect is an implementation of Ext.Direct remoting protocol
used in Ext JS framework for JavaScript.

For more information, see RPC::ExtDirect documentation.

INSTALLATION

To install this module type the following:

   perl Makefile.PL -apxs /path/to/your/apxs
   make
   make test

t/lib/RPC/ExtDirect/Test/JuiceBar.pm  view on Meta::CPAN

    # Return 'uploads' data
    my $response = "The following files were processed:\n";
    for my $upload ( @$uploads ) {
        my $name = $upload->{basename};
        my $type = $upload->{type};
        my $size = $upload->{size};

        # CTI::Test somehow uploads files so that
        # they are 2 bytes shorter than actual size
        # This allows for the same test results to be
        # applied across all gateways and test frameworks
        #
        # Well, in all truthiness this should be the opposite
        # but CGI::Test was there first...
        $size -= 2 if $CHEAT;

        my $ok = (defined $upload->{handle} &&
                          $upload->{handle}->opened) ? "ok" : "not ok";

        $response .= "$name $type $size $ok\n";
    };



( run in 0.584 second using v1.01-cache-2.11-cpan-df04353d9ac )