(obj: any)
| 11 | } |
| 12 | |
| 13 | function isSocketLike(obj: any): obj is Socket { |
| 14 | return obj && typeof obj.write === 'function' && !('writeHead' in obj); |
| 15 | } |
| 16 | |
| 17 | export const errorResponsePlugin: Plugin = definePlugin((proxyServer, options) => { |
| 18 | proxyServer.on('error', (err, req, res, target?) => { |
no outgoing calls
no test coverage detected