Request Options

All options shared with the Fetch API

This page documents the configuration options that callApi shares with the Fetch API. You can set them in createFetchClient or per request. Per-request values replace base values. This includes headers: to keep the base headers, pass a function, for example headers: ({ baseHeaders }) => ({ ...baseHeaders, "X-Trace": "1" }).

For options that the Fetch API doesn't support, such as Next.js's next, use extraFetchOptions.

Prop

Type

Edit on GitHub

Last updated on