x-http-client
Version:
An http client to simplify sending requests (HTTP & JSONP) in the browser.
25 lines (20 loc) • 496 B
JavaScript
/**
* JSONPResponse module.
*
* @module class/JSONPResponse
*/
var Response = require('./Response');
var inherits = require('../shared/inherits');
var addMixin = require('../shared/addMixin');
/**
* The JSONPResponse class.
*
* @class
* @param {JSONRequest} request The http request.
*/
function JSONPResponse(request) {
Response.call(this, request);
addMixin(this, request.options, 'jsonpResponseMixin');
}
inherits(JSONPResponse, Response);
module.exports = JSONPResponse;