1Plack::Middleware::JSONUPs(e3r)Contributed Perl DocumentPaltaicokn::Middleware::JSONP(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

22       Tatsuhiko Miyagawa
23

SEE ALSO

25       Plack
26
27
28
29perl v5.32.0                      2020-12-02       Plack::Middleware::JSONP(3)
Impressum