MCPcopy Create free account
hub / github.com/anomalyco/opencode / execute

Function execute

packages/core/src/tool/webfetch.ts:89–90  ·  view source on GitHub ↗
(http: HttpClient.HttpClient, url: string, format: Format, userAgent = browserUserAgent)

Source from the content-addressed store, hash-verified

87}
88
89const execute = (http: HttpClient.HttpClient, url: string, format: Format, userAgent = browserUserAgent) =>
90 http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk))
91
92const collectBody = (response: HttpClientResponse.HttpClientResponse) =>
93 collectBoundedResponseBody(

Callers 1

webfetch.tsFile · 0.70

Calls 2

requestFunction · 0.70
executeMethod · 0.65

Tested by

no test coverage detected