UNPKG

496 BJavaScriptView Raw
1/**
2 * JSONPResponse module.
3 *
4 * @module class/JSONPResponse
5 */
6
7var Response = require('./Response');
8var inherits = require('../shared/inherits');
9var addMixin = require('../shared/addMixin');
10
11/**
12 * The JSONPResponse class.
13 *
14 * @class
15 * @param {JSONRequest} request The http request.
16 */
17function JSONPResponse(request) {
18 Response.call(this, request);
19 addMixin(this, request.options, 'jsonpResponseMixin');
20}
21
22inherits(JSONPResponse, Response);
23
24module.exports = JSONPResponse;