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

Method multipart

packages/platform/bun/src/BunHttpServer.ts:500–512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

498 >
499 | undefined
500 get multipart(): Effect.Effect<
501 Multipart.Persisted,
502 Multipart.MultipartError,
503 Scope.Scope | FileSystem.FileSystem | Path.Path
504 > {
505 if (this.multipartEffect) {
506 return this.multipartEffect
507 }
508 this.multipartEffect = Effect.runSync(Effect.cached(
509 BunMultipart.persisted(this.source)
510 ))
511 return this.multipartEffect
512 }
513
514 get multipartStream(): Stream.Stream<Multipart.Part, Multipart.MultipartError> {
515 return BunMultipart.stream(this.source)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected