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.
Since this middleware removes the Content-Length header to rewrite the content body, you may also want to enable Plack::Middleware::ContentLength.
AUTHOR
Tatsuhiko Miyagawa