BaseRequestOptions
Defined in: packages/core/src/transport.ts:24
The request fields the shared lifecycle reads. SDKs extend this with their own (e.g. path, service, query).
Properties
Section titled “Properties”
optionalbody?:unknown
Defined in: packages/core/src/transport.ts:28
Request body. Serialized as JSON unless it is a FormData (sent as multipart). Skipped for GET.
headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Defined in: packages/core/src/transport.ts:42
Extra per-request headers merged over the default header set (caller headers win).
idempotent?
Section titled “idempotent?”
optionalidempotent?:boolean
Defined in: packages/core/src/transport.ts:40
Whether this request is safe to auto-replay on an ambiguous transient
failure (5xx / network drop / client timeout). GET is always idempotent.
For writes this defaults to false: a timed-out or 5xx write may already
have committed server-side, so only a 429 (provably rejected before
processing) is retried. Set true to opt a write back into full retries.
method
Section titled “method”method:
string
Defined in: packages/core/src/transport.ts:26
HTTP method. GET is treated as idempotent for retry purposes.
rateLimiter?
Section titled “rateLimiter?”
optionalrateLimiter?:TokenBucketRateLimiter
Defined in: packages/core/src/transport.ts:32
Per-endpoint rate limiter; one token is acquired before each attempt.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/core/src/transport.ts:30
Caller abort signal, composed with the per-request timeout.
Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.