Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Wrapper class for generating a HTTP response with JSONP data

src/k/a/ka-lite-HEAD/kalite/utils/internet/decorators.py   ka-lite(Download)
from django.utils.translation import ugettext as _
from .classes import CsvResponse, JsonResponse, JsonResponseMessageError, JsonpResponse
            elif "callback" in request.REQUEST:
                # wrap the JSON data as a JSONP response
                response = JsonpResponse(response.content, request.REQUEST["callback"])
        # add CORS-related headers, if the Origin header was included in the request