jspm

Function fetch

  • Use the internal fetch implementation, useful for hooking into the same shared local fetch cache.

    import { fetch } from '@jspm/generator';

    const res = await fetch(url);
    console.log(await res.text());

    Use the { cache: 'no-store' } option to disable the cache, and the { cache: 'force-cache' } option to enforce the offline cache.

    Parameters

    • url: string
    • opts: any = {}

    Returns Promise<any>

Generated using TypeDoc