• 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. Spin).

    Parameters

    • url: RequestInfo

      This defines the resource that you wish to fetch.

    • Optional init: RequestInit

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

    Returns Promise<Response>

    A promise that resolves with the response.