class HttpAge
source · line 6public
public class HttpAge private constructor(
/**
* The age value in whole seconds.
*/
public val seconds: Long,
/**
* The original parsed field-value bytes, or None for a programmatically constructed value.
*/
public val originalValue: Array<Byte>?) : ToString
- Supertype
ToString
A nonnegative Age field value in seconds, retaining original input when parsed.
property originalValue
source · line 14public
public val originalValue: Array<Byte>?
get: public read-only
The original parsed field-value bytes, or None for a programmatically constructed value.
property seconds
source · line 10public
public val seconds: Long
get: public read-only
The age value in whole seconds.
function toString
source · line 22public
public override fun toString(): String
- Overrides
toString
Formats the structured value as HTTP field text.
function toHttpField
source · line 30public
public fun toHttpField(): HttpField
Builds the corresponding named HTTP field from the structured value.
constructor constructor
source · line 15public
constructor(seconds: Long)
parameter seconds
source · line 15public
seconds: Long
function toByteArray
source · line 26public
public fun toByteArray(): Array<Byte>
Serializes the structured value into HTTP field-value bytes.