heroku-client
Version:
A wrapper for the Heroku v3 API
22 lines (16 loc) • 391 B
JavaScript
;
var Stream = require('stream').Stream;
module.exports = MockResponse;
function MockResponse(options) {
this.statusCode = 200;
this.headers = {};
for (var key in options) {
if (options.hasOwnProperty(key)) {
this[key] = options[key];
}
}
}
for (var key in Stream.prototype) {
// jshint -W089
MockResponse.prototype[key] = Stream.prototype[key];
}