HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulewai-extra-3.1.18Haskell2010

Network.Wai.Middleware.Jsonp

Automatic wrapping of JSON responses to convert into JSONP.

  • 1 value
valuejsonp :: Middleware
#

Wrap json responses in a jsonp callback.

Basically, if the user requested a "text/javascript" and supplied a "callback" GET parameter, ask the application for an "application/json" response, then convert that into a JSONP response, having a content type of "text/javascript" and calling the specified callback function.