sipp
Version:
An Opinionated, High-Productivity MVC Web Framework in TypeScript
18 lines • 630 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HTTPResponder = void 0;
const index_1 = require("./index");
const download_1 = require("./download");
class HTTPResponder {
reply(response, headers, status) {
return index_1.toResponse(response, headers, status);
}
redirect(path, status = 302, headers) {
return new index_1.HTTPRedirect(path, headers, status);
}
download(download, fileName, mimetype) {
return download_1.Download.from(download, mimetype, fileName);
}
}
exports.HTTPResponder = HTTPResponder;
//# sourceMappingURL=Responder.js.map