Options for a Get function

interface GetOptions {
    attachment?: IntoZBytes;
    congestion_control?: CongestionControl;
    consolidation?: ConsolidationMode;
    encoding?: Encoding;
    express?: boolean;
    handler?: Handler | ((sample: Reply) => Promise<void>);
    payload?: IntoZBytes;
    priority?: Priority;
    target?: QueryTarget;
    timeout?: TimeDuration;
}

Properties

attachment?: IntoZBytes

Additional Data sent with the request

congestion_control?: CongestionControl

congestion_control applied when routing the data

consolidation?: ConsolidationMode

consolidation mode

encoding?: Encoding

Encoding type of payload

express?: boolean

Express

handler?: Handler | ((sample: Reply) => Promise<void>)

either a callback or a polling handler with an underlying handling mechanism

payload?: IntoZBytes

Payload associated with getrequest

priority?: Priority

priority of the written data

target?: QueryTarget
timeout?: TimeDuration

Timeout value for a get request