Skip to content

DenoMultipart

Web-standard helpers for parsing HTTP multipart/form-data request bodies.

This module mirrors BunMultipart, adapting a web Request body and headers into the shared Multipart model. stream returns multipart parts as a Stream, while persisted collects the form and writes file parts to scoped temporary files through the current FileSystem, Path, and Scope services.

2 exports Added in v4.0.0 Source

Constructors

persisted

Added in v4.0.0 Source

Parses and persists multipart data from a web Request, requiring file-system, path, and scope services.

Signature

declare function persisted(
  source: Request,
): Effect<Persisted, MultipartError, Path | FileSystem | Scope>;

stream

Added in v4.0.0 Source

Parses a web Request body as multipart data and returns a stream of multipart parts.

Signature

declare function stream(source: Request): Stream<Part, MultipartError>;