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