UNPKG

@dazejs/framework

Version:

Daze.js - A powerful web framework for Node.js

22 lines 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResponseManager = void 0; const _1 = require("."); class ResponseManager { constructor(data = null, code = 200, headers = {}) { if (data instanceof _1.Response) { this.response = data; } else { this.response = new _1.Response(data, code, headers); } } output(request) { if (!this.response) return undefined; this.response.send(request); return this.response; } } exports.ResponseManager = ResponseManager; //# sourceMappingURL=manager.js.map