Function HttpTryGetJson

  • Makes an asynchronous attempt to perform a GET request to one or more URLs. If multiple URLs are provided, it resolves with the first successful response.

    Type Parameters

    • T

    Parameters

    • urls: string | string[]

      A single URL or an array of URLs to attempt the GET request.

    Returns Promise<T | undefined>

    A promise that resolves with the first successful response or undefined if all attempts fail.

    5.4.0

    2023-12-08