BinaryItem

class BinaryItem(val provider: () -> Input, dispose: () -> Unit, partHeaders: Headers, release: suspend () -> Unit = {}) : PartData(source)

Represents a binary item.

Report a problem

Constructors

Link copied to clipboard
constructor(provider: () -> Input, dispose: () -> Unit, partHeaders: Headers, release: suspend () -> Unit = {})

Properties

Link copied to clipboard

Parsed Content-Disposition header or null if missing.

Link copied to clipboard

Parsed Content-Type header or null if missing.

Link copied to clipboard
val dispose: () -> Unit

former blocking call to close the part; use release instead

Link copied to clipboard

of this part, could be inaccurate on some engines

Link copied to clipboard
val name: String?

Optional part name based on Content-Disposition header.

Link copied to clipboard
val provider: () -> Input

of content bytes

Link copied to clipboard
val release: suspend () -> Unit

to be invoked when this part is no longer needed