MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / createPinnedAgent

Function createPinnedAgent

packages/components/src/httpSecurity.ts:335–344  ·  view source on GitHub ↗
(target: ResolvedTarget, options?: { ca?: string | string[] | Buffer })

Source from the content-addressed store, hash-verified

333}
334
335function 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}

Callers 2

secureAxiosRequestFunction · 0.85
secureFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected