FilePartWriter Type

Holds the stream and completion callbacks for a single multipart file part.

Record fields

Record Field Description

onError

Full Usage: onError

Field type: unit -> unit

Called after the stream is disposed when the part is empty or an error occurs; use this to clean up partial state.

Field type: unit -> unit

onSuccess

Full Usage: onSuccess

Field type: unit -> HttpUpload

Called after the stream is disposed on successful completion; returns the HttpUpload to add to the request.

Field type: unit -> HttpUpload

stream

Full Usage: stream

Field type: Stream

The stream into which incoming bytes are written.

Field type: Stream