Tatsuhiko Miyagawa > Plack-0.9932 > Plack::Middleware::JSONP

Download:
Plack-0.9932.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: Plack-1.0033

NAME ^

Plack::Middleware::JSONP - Wraps JSON response in JSONP if callback parameter is specified

DESCRIPTION ^

Plack::Middleware::JSONP wraps JSON response, which has Content-Type value either text/javascript or application/json as a JSONP response which is specified with the callback query parameter.

This middleware only works with an application response with content body set as a single element array ref and doesn't touch the response otherwise.

AUTHOR ^

Tatsuhiko Miyagawa

SEE ALSO ^

Plack

syntax highlighting: