zeed
    Preparing search index...

    Function fetchBasic

    • Simplified fetch wrapper.

      • Accepts a single fetch options object or an array of options which will be deep-merged.
      • Supports basic auth embedded in the URL (e.g. https://user:pass@host/path).
      • Normalizes headers to a Headers instance.
      • Returns the Response when status < 400, otherwise returns undefined.

      Parameters

      • url: string | URL
      • fetchOptions: fetchOptionsType = {}
      • fetchFn: (input: RequestInfo, init?: RequestInit) => Promise<Response> = fetch

      Returns Promise<Response | undefined>