Scoop API

scoop:scoop.http.server:0.1.0

RequestMultipart

class RequestMultipart

source · line 8
public
public class RequestMultipart internal constructor(private val source: MultipartSource,
    private val options: RequestMultipartOptions) : AsyncCloseable

A single-pass form-data view, borrowing the underlying HTTP request body.

function close

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

Releases local state without draining or closing the borrowed HTTP body.

function nextPart

source · line 19
public
public suspend fun nextPart(): RequestPart?

Receives the next part only after the current one has reached EOF or been discarded.