Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RequestOptions

import type { RequestOptions } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
interface RequestOptions {
headers?: MsgHdrs;
noMux?: boolean;
reply?: string;
timeout: number;
}

§Properties

§
headers?: MsgHdrs
[src]

MsgHdrs to include with the request.

§
noMux?: boolean
[src]

If true, the request API will create a regular NATS subscription to process the response. Otherwise a shared muxed subscriptions is used. Requires {@link reply}

§
reply?: string
[src]

The subject where the response should be sent to. Requires {@link noMux}

§
timeout: number
[src]

number of milliseconds before the request will timeout.