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

Function clientFromResponse

packages/effect/test/httpapi/HttpApiClient.test.ts:1950–1953  ·  view source on GitHub ↗
(response: () => Response)

Source from the content-addressed store, hash-verified

1948}
1949
1950const clientFromResponse = (response: () => Response): HttpClient.HttpClient =>
1951 HttpClient.make((request): Effect.Effect<HttpClientResponse.HttpClientResponse, never, never> =>
1952 Effect.succeed(HttpClientResponse.fromWeb(request, response()))
1953 )
1954
1955const textStream = (chunks: ReadonlyArray<string>): ReadableStream<Uint8Array> => {
1956 let index = 0

Callers 5

decodeFunction · 0.85
getFunction · 0.85
eventsFunction · 0.85
makeClientFunction · 0.85

Calls 3

responseFunction · 0.70
makeMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected