Skip to content

@lelantos-org/sdk / services / JsonRequestOptions

Interface: JsonRequestOptions ​

Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:5

headers keeps per-request credentials out of the URL; see bearerAuth.

Properties ​

cache? ​

ts
optional cache?: RequestCache;

Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:15

Overrides the no-store in PRIVACY_REQUEST_DEFAULTS on GET. Only for global routes identical for every caller, where the URL discloses nothing about who asked. Wallet-scoped routes (notes, matches, subscriptions) must keep the default: a cache entry records the request on the device and in any intermediary that honors it.


headers? ​

ts
optional headers?: Record<string, string>;

Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:7


idempotent? ​

ts
optional idempotent?: boolean;

Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:22

Declares a non-GET request safe to repeat, so it retries on 5xx like a read. See HttpRequestInit.idempotent.


params? ​

ts
optional params?: QueryParams;

Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:6


signal? ​

ts
optional signal?: AbortSignal;

Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:17

Cancels the in-flight request and the retry loop.