logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Tatsuhiko Miyagawa

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. 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.

Name

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

See Also

       Plack

perl v5.38.2                                       2024-01-20                      Plack::Middleware::JSONP(3pm)

Synopsis

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

See Also