@shopify/cli-kit
    Preparing search index...

    Function shopifyFetch

    • A fetch function to use with Shopify services. The function ensures the right TLS configuragion is used based on the environment in which the service is running (e.g. Local). NB: headers/auth are the responsibility of the caller.

      By default, the CLI's fetch function's special behaviours, like automatic retries, are enabled.

      Parameters

      • url: RequestInfo

        This defines the resource that you wish to fetch.

      • Optionalinit: RequestInit

        An object containing any custom settings that you want to apply to the request.

      • OptionalpreferredBehaviour: RequestModeInput

        A request behaviour object that overrides the default behaviour.

      Returns Promise<Response>

      A promise that resolves with the response.