class MultipartBoundary
source · line 9public
public class MultipartBoundary private constructor(
/**
* The validated ASCII boundary text without delimiter prefixes.
*/
public val value: String, internal val bytes: Array<Byte>) : Equals<MultipartBoundary>, Hash, ToString
- Supertype
Equals<MultipartBoundary> - Supertype
Hash - Supertype
ToString
A validated multipart boundary of 1..70 permitted ASCII characters with no trailing space.
function hash
source · line 23public
public override fun hash(): Long
- Overrides
hash
Hashes the boundary text consistently with equality.
property value
source · line 13public
public val value: String
get: public read-only
The validated ASCII boundary text without delimiter prefixes.
function toMediaType
source · line 31public
public fun toMediaType(subtype: String = "form-data"): HttpMediaType
Builds a multipart media type with this boundary and the selected subtype.
parameter subtype
source · line 31public
subtype: String = "form-data"
function equals
source · line 19public
public override operator fun equals(other: MultipartBoundary): Boolean
- Overrides
equals
Compares boundary text exactly.
parameter other
source · line 19public
other: MultipartBoundary
function toString
source · line 27public
public override fun toString(): String
- Overrides
toString
Returns the raw boundary text.
constructor constructor
source · line 15public
constructor(value: String)
parameter value
source · line 15public
value: String