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

Function respond

packages/core/test/tool-webfetch.test.ts:19–20  ·  view source on GitHub ↗
(_request: HttpClientRequest.HttpClientRequest)

Source from the content-addressed store, hash-verified

17const requests: Array<{ readonly url: string; readonly headers: Record<string, string> }> = []
18const assertions: PermissionV2.AssertInput[] = []
19let respond = (_request: HttpClientRequest.HttpClientRequest) =>
20 Effect.succeed(new Response("hello", { headers: { "content-type": "text/plain" } }))
21
22const http = Layer.succeed(
23 HttpClient.HttpClient,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected