Scoop API

scoop:scoop.http:0.1.0

MultipartDecoder

class MultipartDecoder

source · line 9
public
public class MultipartDecoder public constructor(
    /**
     * The validated delimiter boundary used by this codec.
     */
    public val boundary: MultipartBoundary,
    limits: MultipartLimits = multipartLimits()
) : Closeable

An incremental multipart parser with bounded headers, parts, and body events. Drain an event before feeding more input; calls on one instance must not overlap.

property isFinished

source · line 32
public
public val isFinished: Boolean

get: public read-only

Whether the codec has completed its terminal operation and, for a decoder, drained pending events.

function nextEvent

source · line 78
public
public fun nextEvent(): MultipartEvent?

Removes the next parsed event, or returns None when no event is ready.

function close

source · line 108
public
public override fun close(): Unit

Releases local state without emitting bytes or finishing an incomplete message.

function endInput

source · line 92
public
public fun endInput(): Unit

Reports EOF, validates completion, and rejects a truncated multipart message.