Scoop API

scoop:scoop.http:0.1.0

HttpRange

class HttpRange

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

An ordered nonempty set of byte-range requests. Resolve against the representation size before serving bytes.

function toHttpField

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

Builds the corresponding named HTTP field from the structured value.

function toByteArray

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

Serializes the structured value into HTTP field-value bytes.

property originalValue

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

get: public read-only

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