class HttpCacheDirective
source · line 7public
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 11public
public val name: String
get: public read-only
The ASCII-lowercase directive token.
function deltaSeconds
source · line 29public
public fun deltaSeconds(): Long
Parses the required nonnegative decimal argument, saturating numeric overflow.
constructor constructor
source · line 24public
constructor(name: String, value: List<Byte>)
parameter name
source · line 24public
name: String
parameter value
source · line 24public
value: List<Byte>
constructor constructor
source · line 22public
constructor(name: String, value: List<Byte>? = None)
parameter value
source · line 22public
value: List<Byte>? = None
parameter name
source · line 22public
name: String
function fieldNames
source · line 41public
public fun fieldNames(): Array<String>
Parses the required argument as a list of HTTP field-name tokens.
property wasQuoted
source · line 19public
public val wasQuoted: Boolean
get: public read-only
Whether the parsed argument used quoted-string syntax.
property value
source · line 15public
public val value: Array<Byte>?
get: public read-only
The optional argument bytes after quoted-string decoding.