UNPKG

sipp

Version:

An Opinionated, High-Productivity MVC Web Framework in TypeScript

20 lines 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Res = void 0; class Res { constructor(req, res) { this.req = req; this.res = res; } get(headerField) { return this.res.get(headerField); } back() { this.res.redirect(302, this.req.get('Referrer')); } status(code) { this.res.status(code); } } exports.Res = Res; //# sourceMappingURL=Res.js.map