UNPKG

x-http-client

Version:

An http client to simplify sending requests (HTTP & JSONP) in the browser.

25 lines (20 loc) 489 B
/** * HttpResponse module. * * @module class/HttpResponse */ var Response = require('./Response'); var inherits = require('../shared/inherits'); var addMixin = require('../shared/addMixin'); /** * The HttpResponse class. * * @class * @param {HttpRequest} request The http request. */ function HttpResponse(request) { Response.call(this, request); addMixin(this, request.options, 'httpResponseMixin'); } inherits(HttpResponse, Response); module.exports = HttpResponse;