1Plack::Middleware::JSONUPs(e3r)Contributed Perl DocumentPaltaicokn::Middleware::JSONP(3)
2
3
4
6 Plack::Middleware::JSONP - Wraps JSON response in JSONP if callback
7 parameter is specified
8
10 enable "JSONP", callback_key => 'jsonp';
11
13 Plack::Middleware::JSONP wraps JSON response, which has Content-Type
14 value either "text/javascript" or "application/json" as a JSONP
15 response which is specified with the "callback" query parameter. The
16 name of the parameter can be set while enabling the middleware.
17
18 This middleware only works with a non-streaming response, and doesn't
19 touch the response otherwise.
20
22 Tatsuhiko Miyagawa
23
25 Plack
26
27
28
29perl v5.32.1 2021-01-27 Plack::Middleware::JSONP(3)