MCPcopy Create free account
hub / github.com/Effect-TS/effect / accessor

Function accessor

packages/effect/src/unstable/http/HttpClient.ts:154–158  ·  view source on GitHub ↗
(method: keyof HttpClient)

Source from the content-addressed store, hash-verified

152)
153
154const accessor = (method: keyof HttpClient) => (...args: Array<any>): Effect.Effect<any, any, any> =>
155 Effect.flatMap(
156 HttpClient,
157 (client) => (client as any)[method](...args)
158 )
159
160/**
161 * Executes a prebuilt `HttpClientRequest` using the `HttpClient` service from the environment.

Callers 4

renderAtomRefFunction · 0.85
renderAccessorFunction · 0.85
runFunction · 0.85
HttpClient.tsFile · 0.85

Calls

no outgoing calls

Tested by 3

renderAtomRefFunction · 0.68
renderAccessorFunction · 0.68
runFunction · 0.68