Scoop API

scoop:scoop.http:0.1.0

MultipartPartHead

class MultipartPartHead

source · line 10
public
public class MultipartPartHead private constructor(
    /**
     * Ordered fields belonging to this part.
     */
    public val fields: Array<HttpField>,
        /**
         * The encoder's expected body byte count, or None when unknown.
         */
        public val bodyLength: Long?, internal val encoded: Array<Byte>
)

Validated part fields and an optional declared body length used by the encoder; parsed incoming heads do not infer a body length.

property bodyLength

source · line 18
public
public val bodyLength: Long?

get: public read-only

The encoder's expected body byte count, or None when unknown.

function toByteArray

source · line 25
public
public fun toByteArray(): Array<Byte>

Returns encoded part-header bytes including the terminating blank line.