MCPcopy
hub / github.com/Effect-TS/effect / fileWeb

Function fileWeb

packages/platform/src/internal/httpBody.ts:174–175  ·  view source on GitHub ↗
(file: Body.HttpBody.FileLike)

Source from the content-addressed store, hash-verified

172
173/** @internal */
174export const fileWeb = (file: Body.HttpBody.FileLike): Body.Stream =>
175 stream(Stream_.fromReadableStream(() => file.stream() as ReadableStream<Uint8Array>, identity), file.type, file.size)
176
177class FormDataImpl extends BodyBase implements Body.FormData {
178 readonly _tag = "FormData"

Callers

nothing calls this directly

Calls 2

streamFunction · 0.70
streamMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…