class MultipartPartHead
source · line 10public
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 18public
public val bodyLength: Long?
get: public read-only
The encoder's expected body byte count, or None when unknown.
constructor constructor
source · line 20public
constructor(fields: List<HttpField> = emptyList<HttpField>(), bodyLength: Long? = None)
parameter bodyLength
source · line 20public
bodyLength: Long? = None
parameter fields
source · line 20public
fields: List<HttpField> = emptyList<HttpField>()
function toByteArray
source · line 25public
public fun toByteArray(): Array<Byte>
Returns encoded part-header bytes including the terminating blank line.
property fields
source · line 14public
public val fields: Array<HttpField>
get: public read-only
Ordered fields belonging to this part.