This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk / FetchOptions

FetchOptions ​

FetchOptions = Omit<RequestInit, "method" | "body" | "signal"> & Record<string, unknown>

Extra fetch options per call, e.g. Next.js's next: { revalidate, tags }, cache, credentials. method, body and signal are always the SDK's: even if given here, they are ignored. In headers, the names the SDK controls (authorization, x-original-host, idempotency-key, content-type, accept, accept-language) are always removed first and only then filled in by the SDK according to the request — even when this particular request does not set one of them (e.g. a forged Authorization does not survive a retry without a token, in optional mode) — comparing names case-insensitively. Any other extra header passes through normally.