org.http4s.server.middleware
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.
application/json
If the wrapping is done, the response Content-Type is changed into application/javascript and the appropriate jsonp callback is applied.
application/javascript
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.