Scoop API

scoop:scoop.http:0.1.0

HttpCacheDirective

class HttpCacheDirective

source · line 7
public
public class HttpCacheDirective internal constructor(
    /**
     * The ASCII-lowercase directive token.
     */
    public val name: String,
        /**
         * The optional argument bytes after quoted-string decoding.
         */
        public val value: Array<Byte>?,
        /**
         * Whether the parsed argument used quoted-string syntax.
         */
        public val wasQuoted: Boolean,
    internal val nameOffset: Long, private val valueOffset: Long, private val sourceValue: Array<Byte>?
)

A normalized directive name and optional raw argument. Numeric and field-list interpretation validate their own grammar.

property name

source · line 11
public
public val name: String

get: public read-only

The ASCII-lowercase directive token.

function deltaSeconds

source · line 29
public
public fun deltaSeconds(): Long

Parses the required nonnegative decimal argument, saturating numeric overflow.

function fieldNames

source · line 41
public
public fun fieldNames(): Array<String>

Parses the required argument as a list of HTTP field-name tokens.

property wasQuoted

source · line 19
public
public val wasQuoted: Boolean

get: public read-only

Whether the parsed argument used quoted-string syntax.

property value

source · line 15
public
public val value: Array<Byte>?

get: public read-only

The optional argument bytes after quoted-string decoding.