pass constructor args

This commit is contained in:
SrGooglo 2025-04-01 00:49:46 +00:00
parent a8d48afe70
commit e49df56952

View File

@ -28,9 +28,9 @@ function getHttpServerEngine(extraOptions = {}, handler = () => {}) {
}
export default class Proxy {
constructor() {
constructor(config = {}) {
this.routes = new Map()
this.config = {}
this.config = config
// Crear servidor HTTP
this.server = getHttpServerEngine({}, this.handleRequest.bind(this))