@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?
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?
optional headers?: Record<string, string>;Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:7
idempotent?
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?
optional params?: QueryParams;Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:6
signal?
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.