MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / makeSharedResolver

Function makeSharedResolver

packages/core/sdk/src/hosted-http-client.ts:614–618  ·  view source on GitHub ↗
(options: HostedHttpClientOptions)

Source from the content-addressed store, hash-verified

612// guardFetch so several adapters over the same options can share a single
613// cache instead of one each.
614const makeSharedResolver = (options: HostedHttpClientOptions): GuardResolver =>
615 withResolutionCache(
616 toGuardResolver(options.resolveHostname ?? resolveHostnameWithNodeDns),
617 options,
618 );
619
620const guardFetch = (
621 underlying: typeof globalThis.fetch,

Callers 2

guardFetchFunction · 0.85
makeHostedHttpFunction · 0.85

Calls 2

withResolutionCacheFunction · 0.85
toGuardResolverFunction · 0.85

Tested by

no test coverage detected