qwebs
Version:
Web application framework
26 lines (20 loc) • 606 B
JavaScript
/*!
* qwebs
* Copyright(c) 2015 Benoît Claveau <benoit.claveau@gmail.com>
* MIT Licensed
*/
;
const http = require("http");
class ResponseProxy {
constructor($response) {
this.$response = $response;
const proxy = this;
http.ServerResponse.prototype.redirect = function(data) {
return proxy.$response.redirect(this, data);
};
http.ServerResponse.prototype.send = function(data) {
return proxy.$response.send(this, data);
};
};
};
exports = module.exports = ResponseProxy;