class RequestMultipart
source · line 8public
public class RequestMultipart internal constructor(private val source: MultipartSource,
private val options: RequestMultipartOptions) : AsyncCloseable
- Supertype
AsyncCloseable
A single-pass form-data view, borrowing the underlying HTTP request body.
function close
source · line 38public
public override suspend fun close(): Unit
- Overrides
close
Releases local state without draining or closing the borrowed HTTP body.
property isFinished
source · line 14public
public val isFinished: Boolean
get: public read-only
Whether the closing delimiter and outer body EOF were both consumed.
getter get
source · line 14public
get(): Boolean
function nextPart
source · line 19public
public suspend fun nextPart(): RequestPart?
Receives the next part only after the current one has reached EOF or been discarded.
property isClosed
source · line 16public
public val isClosed: Boolean
get: public read-only
Whether this view's local decoder and buffers have been released.
getter get
source · line 16public
get(): Boolean