(target: ResolvedTarget, options?: { ca?: string | string[] | Buffer })
| 333 | } |
| 334 | |
| 335 | function createPinnedAgent(target: ResolvedTarget, options?: { ca?: string | string[] | Buffer }): http.Agent | https.Agent { |
| 336 | const Agent = target.protocol === 'https' ? https.Agent : http.Agent |
| 337 | |
| 338 | return new Agent({ |
| 339 | lookup: (_host, _opts, cb) => { |
| 340 | cb(null, target.ip, target.family) |
| 341 | }, |
| 342 | ...options |
| 343 | }) |
| 344 | } |
no outgoing calls
no test coverage detected