(config: ProxyConfig)
| 88 | private globalInterceptors: Interceptor[] = []; |
| 89 | |
| 90 | constructor(config: ProxyConfig) { |
| 91 | super(); |
| 92 | |
| 93 | |
| 94 | this.config = { |
| 95 | listenHost: '127.0.0.1', |
| 96 | timeout: 30000, |
| 97 | enableLogging: false, |
| 98 | ...config |
| 99 | }; |
| 100 | |
| 101 | this.connections = new Map(); |
| 102 | this.isRunning = false; |
| 103 | this.server = this.createServer(); |
| 104 | } |
| 105 | |
| 106 | public async start(): Promise<void> { |
| 107 | return new Promise((resolve, reject) => { |
nothing calls this directly
no test coverage detected