class HttpContentRange
source · line 7public
public class HttpContentRange private constructor(
/**
* The satisfied inclusive byte interval, or None for an unsatisfied range.
*/
public val range: HttpResolvedRange?,
/**
* The complete representation length when known.
*/
public val completeLength: Long?,
/**
* The original parsed field-value bytes, or None for a programmatically constructed value.
*/
public val originalValue: Array<Byte>?
) : ToString
- Supertype
ToString
A Content-Range value with an optional satisfied interval and optional complete representation length.
function toHttpField
source · line 39public
public fun toHttpField(): HttpField
Builds the corresponding named HTTP field from the structured value.
function toString
source · line 27public
public override fun toString(): String
- Overrides
toString
Formats the structured value as HTTP field text.
function toByteArray
source · line 35public
public fun toByteArray(): Array<Byte>
Serializes the structured value into HTTP field-value bytes.
property range
source · line 11public
public val range: HttpResolvedRange?
get: public read-only
The satisfied inclusive byte interval, or None for an unsatisfied range.
constructor constructor
source · line 21public
constructor(range: HttpResolvedRange, completeLength: Long? = None)
parameter completeLength
source · line 21public
completeLength: Long? = None
parameter range
source · line 21public
range: HttpResolvedRange
property completeLength
source · line 15public
public val completeLength: Long?
get: public read-only
The complete representation length when known.
property originalValue
source · line 19public
public val originalValue: Array<Byte>?
get: public read-only
The original parsed field-value bytes, or None for a programmatically constructed value.