GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Plack::Middleware::JSONP(3) User Contributed Perl Documentation Plack::Middleware::JSONP(3)

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

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

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.

Tatsuhiko Miyagawa

Plack
2020-11-30 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.