class MultipartSource
source · line 11public
public class MultipartSource private constructor(
private val reader: MultipartReader
) : AsyncCloseable
- Supertype
AsyncCloseable
A sequential multipart reader over a borrowed source by default. Finish or explicitly discard the current part before requesting another.
function close
source · line 68public
public override suspend fun close(): Unit
- Overrides
close
Closes parser/writer state and an endpoint whose ownership was transferred; borrowed endpoints retain their own cleanup responsibility.
function nextPart
source · line 63public
public suspend fun nextPart(): MultipartPart?
Receives the next part head and body, or None after the final multipart boundary.
constructor constructor
source · line 14public
constructor(source: AsyncByteSource, boundary: MultipartBoundary, limits: MultipartLimits = multipartLimits(), bufferSize: Long = 8192L)
parameter source
source · line 15public
source: AsyncByteSource
parameter bufferSize
source · line 18public
bufferSize: Long = 8192L
parameter limits
source · line 17public
limits: MultipartLimits = multipartLimits()
parameter boundary
source · line 16public
boundary: MultipartBoundary
property failure
source · line 59public
public val failure: Throwable?
get: public read-only
The retained terminal exception, or None before failure.
getter get
source · line 59public
get(): Option<Throwable>
property isClosed
source · line 51public
public val isClosed: Boolean
get: public read-only
Whether adapter cleanup has completed.
getter get
source · line 51public
get(): Boolean
property isFinished
source · line 55public
public val isFinished: Boolean
get: public read-only
Whether the complete protocol boundary or input end has been reached.
getter get
source · line 55public
get(): Boolean