Jsonp

object Jsonp

Middleware to support wrapping json responses in jsonp.

Jsonp wrapping occurs when the request contains a parameter with the given name and the request Content-Type is application/json.

If the wrapping is done, the response Content-Type is changed into application/javascript and the appropriate jsonp callback is applied.

Source:
Jsonp.scala
class Object
trait Matchable
class Any
Jsonp.type

Value members

Concrete methods

def apply[F[_] : Applicative, G[_]](callbackParam: String)(http: Http[F, G]): Http[F, G]