HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulewai-extra-3.1.16Haskell2010

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.