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.

class Object
trait Matchable
class Any

Value members

Concrete methods

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