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

Method multipart

packages/platform/node/src/NodeHttpServer.ts:370–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368 >
369 | undefined
370 get multipart(): Effect.Effect<
371 Multipart.Persisted,
372 Multipart.MultipartError,
373 Scope.Scope | FileSystem.FileSystem | Path.Path
374 > {
375 if (this.multipartEffect) {
376 return this.multipartEffect
377 }
378 this.multipartEffect = Effect.runSync(Effect.cached(
379 NodeMultipart.persisted(this.source, this.source.headers)
380 ))
381 return this.multipartEffect
382 }
383
384 get multipartStream(): Stream.Stream<Multipart.Part, Multipart.MultipartError> {
385 return NodeMultipart.stream(this.source, this.source.headers)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected