Skip to content

Expiry

Defined in: packages/agent/src/agent/http/transforms.ts:23

readonly _isExpiry: true = true

Defined in: packages/agent/src/agent/http/transforms.ts:24

toBigInt(): bigint

Defined in: packages/agent/src/agent/http/transforms.ts:61

bigint


toHash(): Uint8Array

Defined in: packages/agent/src/agent/http/transforms.ts:65

Uint8Array


toJSON(): JsonnableExpiry

Defined in: packages/agent/src/agent/http/transforms.ts:77

Serializes to JSON

JsonnableExpiry

a JSON object with a single key, JSON_KEY_EXPIRY, whose value is the expiry as a string


toString(): string

Defined in: packages/agent/src/agent/http/transforms.ts:69

string


static fromDeltaInMilliseconds(deltaInMs): Expiry

Defined in: packages/agent/src/agent/http/transforms.ts:36

Creates an Expiry object from a delta in milliseconds. If the delta is less than 90 seconds, it is rounded to the nearest second. Otherwise, the delta is rounded down to the nearest minute, with a replica permitted drift subtracted.

number

The delta in milliseconds.

Expiry

an Expiry object


static fromJSON(input): Expiry

Defined in: packages/agent/src/agent/http/transforms.ts:86

Deserializes a JsonnableExpiry object from a JSON string.

string

The JSON string to deserialize.

Expiry

The deserialized Expiry object.


static isExpiry(other): other is Expiry

Defined in: packages/agent/src/agent/http/transforms.ts:101

unknown

other is Expiry