UNPKG

@webfaas/webfaas-plugin-endpoint-http

Version:
29 lines 982 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EndPointHTTPConfig = exports.EndPointHTTPConfigTypeEnum = void 0; var EndPointHTTPConfigTypeEnum; (function (EndPointHTTPConfigTypeEnum) { EndPointHTTPConfigTypeEnum["HTTP"] = "HTTP"; EndPointHTTPConfigTypeEnum["HTTPS"] = "HTTPS"; })(EndPointHTTPConfigTypeEnum = exports.EndPointHTTPConfigTypeEnum || (exports.EndPointHTTPConfigTypeEnum = {})); class EndPointHTTPConfig { constructor(port, hostname, type, httpConfig) { this.route = {}; if (port) { this.port = port; } else { this.port = 8080; } this.hostname = hostname; if (type) { this.type = type; } else { this.type = EndPointHTTPConfigTypeEnum.HTTP; } this.httpConfig = httpConfig || null; } } exports.EndPointHTTPConfig = EndPointHTTPConfig; //# sourceMappingURL=EndPointHTTPConfig.js.map