Jsonp

org.http4s.server.middleware.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.

Attributes

Source:
Jsonp.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Jsonp.type

Members list

Concise view

Value members

Concrete methods

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

Attributes

Source:
Jsonp.scala