-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Automatic wrapping of JSON responses to convert into JSONP. -- -- Automatic wrapping of JSON responses to convert into JSONP. @package hack-middleware-jsonp @version 0.0.1 -- | Automatic wrapping of JSON responses to convert into JSONP. module Hack.Middleware.Jsonp -- | 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 convern that into a JSONP response, -- having a content type of "text/javascript" and calling the specified -- callback function. jsonp :: Middleware