Scoop API

scoop:scoop.http:0.1.0

HttpVary

class HttpVary

source · line 9
public
public class HttpVary private constructor(
    /**
     * The normalized request-field names controlling selection.
     */
    public val names: Array<String>,
    /**
     * The original field-value byte sequences, preserving field order.
     */
    public val originalValues: Array<Array<Byte>>)

The request-field names affecting representation selection, or a wildcard that prevents ordinary cache matching.

function toHttpField

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

Builds the corresponding named HTTP field from the structured value.

function toByteArray

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

Serializes the structured value into HTTP field-value bytes.

property names

source · line 13
public
public val names: Array<String>

get: public read-only

The normalized request-field names controlling selection.

property originalValues

source · line 17
public
public val originalValues: Array<Array<Byte>>

get: public read-only

The original field-value byte sequences, preserving field order.