class HttpContentDisposition
source · line 30public class HttpContentDisposition private constructor(
/**
* The normalized disposition token.
*/
public val disposition: String,
/**
* The parsed named parameters in their stored order.
*/
public val parameters: Array<HttpParameter>,
/**
* The original parsed field-value bytes, or None for a programmatically constructed value.
*/
public val originalValue: Array<Byte>?
)
A disposition token with unique parameters. Filename interpretation is explicit and does not sanitize a filesystem path.
property parameters
source · line 38public val parameters: Array<HttpParameter>
get: public read-only
The parsed named parameters in their stored order.
function toHttpField
source · line 58public fun toHttpField(): HttpField
Builds the corresponding named HTTP field from the structured value.
function toByteArray
source · line 54public fun toByteArray(): Array<Byte>
Serializes the structured value into HTTP field-value bytes.
property disposition
source · line 34public val disposition: String
get: public read-only
The normalized disposition token.
property originalValue
source · line 42public val originalValue: Array<Byte>?
get: public read-only
The original parsed field-value bytes, or None for a programmatically constructed value.
function parameter
source · line 50public fun parameter(name: String): HttpParameter?
Looks up a named parameter using ASCII case val folding, returning None when absent.
parameter name
source · line 50name: String
constructor constructor
source · line 44constructor(disposition: String, parameters: List<HttpParameter> = emptyList<HttpParameter>())
parameter parameters
source · line 44parameters: List<HttpParameter> = emptyList<HttpParameter>()
parameter disposition
source · line 44disposition: String
function filename
source · line 64public fun filename(allowIso88591: Boolean = false): HttpFilename
Prefers decoded filename*, falling back to ISO-8859-1 filename and retaining any extended-value error. The result is not a sanitized filesystem path.
parameter allowIso88591
source · line 64allowIso88591: Boolean = false