Scoop API

scoop:scoop.http.server:0.1.0

RequestPart

class RequestPart

source · line 10
public
public class RequestPart internal constructor(part: MultipartPart, owner: RequestMultipart,
    private val options: RequestMultipartOptions) : AsyncCloseable

One ordered form-data part with strict text metadata and a single body consumption path.

function close

source · line 71
public
public override suspend fun close(): Unit

Closes this view; abandoning an incomplete part terminates the multipart reader.

function discard

source · line 64
public
public suspend fun discard(maxBytes: Long): Long

Explicitly discards remaining body bytes within both limits, even after a partial read.

property head

source · line 17
public
public val head: MultipartPartHead

get: public read-only

The original ordered part fields; Content-Length does not change boundary framing.

property nameBytes

source · line 19
public
public val nameBytes: Array<Byte>

get: public read-only

The raw, unescaped name parameter, including an explicitly empty name.

property filenameBytes

source · line 21
public
public val filenameBytes: Array<Byte>?

get: public read-only

The raw filename parameter; missing and empty filenames remain distinct.