class HttpRange
source · line 10public
public class HttpRange private constructor(
/**
* Requested byte intervals in their original order.
*/
public val ranges: Array<HttpByteRange>,
/**
* The original parsed field-value bytes, or None for a programmatically constructed value.
*/
public val originalValue: Array<Byte>?
) : ToString
- Supertype
ToString
An ordered nonempty set of byte-range requests. Resolve against the representation size before serving bytes.
function resolve
source · line 26public
public fun resolve(completeLength: Long): HttpRangeResolution
Resolves requested ranges against a nonnegative representation length, retaining satisfiable intervals.
parameter completeLength
source · line 26public
completeLength: Long
function toHttpField
source · line 71public
public fun toHttpField(): HttpField
Builds the corresponding named HTTP field from the structured value.
property ranges
source · line 14public
public val ranges: Array<HttpByteRange>
get: public read-only
Requested byte intervals in their original order.
constructor constructor
source · line 20public
constructor(ranges: List<HttpByteRange>)
parameter ranges
source · line 20public
ranges: List<HttpByteRange>
function toByteArray
source · line 53public
public fun toByteArray(): Array<Byte>
Serializes the structured value into HTTP field-value bytes.
function toString
source · line 67public
public override fun toString(): String
- Overrides
toString
Formats the structured value as HTTP field text.
property originalValue
source · line 18public
public val originalValue: Array<Byte>?
get: public read-only
The original parsed field-value bytes, or None for a programmatically constructed value.