Scoop API

scoop:scoop.http:0.1.0

HttpAge

class HttpAge

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

A nonnegative Age field value in seconds, retaining original input when parsed.

property originalValue

source · line 14
public
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 10
public
public val seconds: Long

get: public read-only

The age value in whole seconds.

function toHttpField

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

Builds the corresponding named HTTP field from the structured value.

function toByteArray

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

Serializes the structured value into HTTP field-value bytes.