x-http-client
Version:
An http client to make it easier to send requests (including JSONP requests) to the server.
25 lines (20 loc) • 511 B
JavaScript
/**
* HttpResponse module.
*
* @module class/HttpResponse
*/
var Response = require('./Response');
var inherits = require('../shared/inherits');
var addCustomParser = require('../shared/addCustomParser');
/**
* The HttpResponse class.
*
* @class
* @param {HttpRequest} request The http request.
*/
function HttpResponse(request) {
Response.call(this, request);
addCustomParser(this, request.options, 'httpResponseParser');
}
inherits(HttpResponse, Response);
module.exports = HttpResponse;