Plack::Middleware::JSONP(3pm)

Plack::Middleware::JSONP3pm

Wraps json response in jsonp if callback parameter is specified

Usage

    enable "JSONP", callback_key => 'jsonp';

Overview

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. The name of the parameter can be set while enabling the middleware.

This middleware only works with a non-streaming response, and doesn't touch the response otherwise.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Author

Tatsuhiko Miyagawa

From libplack-perl 1.0051-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.