Group
Extension

Matches 2

CGI-ExtDirect ( T/TO/TOKAREV/CGI-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
CGI-ExtDirect/lib/CGI/ExtDirect.pm ( view source; MetaCPAN )
->poll($self->cgi);

    # Gather variables for HTTP response
    my $content_type = 'application/json';
    my $http_status  = '200 OK';

    # And we need content length, too (in octets)
    my $con
oads, @field_uploads;
            delete $keyword{ $param };
        };
    };

    # Metadata is JSON encoded; decode_metadata lives by side effects!
    if ( exists $keyword{metadata} ) {
        RP
CGI-ExtDirect ( T/TO/TOKAREV/CGI-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
CGI-ExtDirect/lib/CGI/ExtDirect.pod ( view source; MetaCPAN )
as the content type that will
override the default C<application/json> type.

Example:

    print $cgi->route('text/javascript'); # JSONP

=item method('content/type', 'HTTP status')

Two header value
erpreted as the content type and
HTTP status, respectively.

Example:

    print $cgi->poll('text/json', '401 Unauthorized'); # Auth request

=item method(-header => 'value')

Any custom header can be
dispatches the quests, collects results and
returns an HTTP response with results as a serialized JSON stream.

Accepts custom headers as described in L</"HTTP response headers">.

=item C<poll>

Inst

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.