Preparing search index...

    Function fetchHtml

    • Fetches HTML content from a URL with timeout handling.

      Returns both the HTML and the final URL after any redirects, which is needed for auth redirect detection on iOS.

      Parameters

      • url: string

        The URL to fetch

      • Optionalsignal: AbortSignal

        Optional abort signal for cancellation

      Returns Promise<FetchHtmlResult>

      The HTML content and final URL after redirects

      Error if fetch fails or times out