Contentful Personalization & Analytics
    Preparing search index...
    FetchInput: string | Request

    Signature of a fetch method used by the API clients.

    The request URL.

    Initialization options passed to fetch.

    A promise that resolves with the Response.

    This abstraction allows the underlying implementation to be replaced, for example in tests or different runtime environments.

    const method: FetchMethod = async (input, init) => {
    return fetch(input, init)
    }