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

Function streamRequest

packages/effect/test/http/FetchHttpClient.test.ts:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31const streamRequest = () =>
32 HttpClientRequest.post("https://example.test/upload").pipe(
33 HttpClientRequest.bodyStream(Stream.make(new Uint8Array([104, 101]), new Uint8Array([108, 108, 111])), {
34 contentType: "application/octet-stream"
35 })
36 )
37
38describe("FetchHttpClient", { concurrent: false }, () => {
39 afterEach(() => {

Callers 1

Calls 3

pipeMethod · 0.65
makeMethod · 0.65
postMethod · 0.45

Tested by

no test coverage detected