map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function apprtFetch

    • Fetches the specified resource. Works like the browser's fetch() function, but supports a few extensions.

      Parameters

      Returns Promise<Response>

      Basic usage:

      import { apprtFetch } from "apprt-fetch";
      const response = await apprtFetch("https://httpbin.org/get");
      if (!response.ok) {
      throw new Error(`Request failed with status: ${response.status}`);
      }
      const data = await response.json();

      See the bundle README for more advanced use cases.