Spree SDK does not come bundled with a HTTP client. A HTTP client may have to be installed before using the library. Out of the box, Spree SDK supports using Axios and fetch HTTP clients to communicate with Spree. To use one of them you have to install and configure a corresponding package:

ADVANCED: Supply a custom HTTP client.

To have full control over requests and responses, a custom fetcher can be supplied during the creation of the Spree SDK client:

makeClient({ createFetcher: ... })

If you want to use a fetch-compatible interface, use the createCustomizedFetchFetcher function.

Generated using TypeDoc