Function HttpTryGetText

  • 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.

    Parameters

    • urls: string | string[]

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

    • Optionaltimeout: number

    Returns Promise<string | undefined>

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

    5.4.0

    2024-05-24