UNPKG

node-web-mvc

Version:
15 lines (14 loc) 557 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const HandlerMethod_1 = __importDefault(require("./HandlerMethod")); class HttpStatusHandlerMethod extends HandlerMethod_1.default { constructor(status) { super({}, () => undefined); this.responseStatus = status.code; this.responseStatusReason = status.message; } } exports.default = HttpStatusHandlerMethod;