Scoop API

scoop:scoop.http:0.1.0

HttpContentRange

class HttpContentRange

source · line 7
public
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

A Content-Range value with an optional satisfied interval and optional complete representation length.

function toHttpField

source · line 39
public
public fun toHttpField(): HttpField

Builds the corresponding named HTTP field from the structured value.

function toByteArray

source · line 35
public
public fun toByteArray(): Array<Byte>

Serializes the structured value into HTTP field-value bytes.

property range

source · line 11
public
public val range: HttpResolvedRange?

get: public read-only

The satisfied inclusive byte interval, or None for an unsatisfied range.

property completeLength

source · line 15
public
public val completeLength: Long?

get: public read-only

The complete representation length when known.

property originalValue

source · line 19
public
public val originalValue: Array<Byte>?

get: public read-only

The original parsed field-value bytes, or None for a programmatically constructed value.