UNPKG

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