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

Function charge

packages/ui/native/test/NativeHttpClient.test.ts:73–78  ·  view source on GitHub ↗
(body: Stream.Stream<Uint8Array>)

Source from the content-addressed store, hash-verified

71 }, (client) =>
72 Effect.gen(function*() {
73 const charge = (body: Stream.Stream<Uint8Array>) =>
74 HttpClient.withScope(client).execute(
75 HttpClientRequest.post("https://api.test/charge").pipe(
76 HttpClientRequest.bodyStream(body)
77 )
78 ).pipe(Effect.flip)
79
80 const closed = yield* Scope.make()
81 yield* Scope.close(closed, Exit.void)

Callers 1

Calls 3

pipeMethod · 0.65
executeMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected