Theia API Documentation v1.70.0
    Preparing search index...
    • Resolves the proxy URL to use for a given target URL.

      Resolution order:

      1. If settingsProxy is provided (e.g., from Theia http.proxy preference), use it.
      2. Otherwise check environment variables based on the target URL scheme.
      3. If a proxy is resolved, check no_proxy/NO_PROXY — if bypass, return undefined.
      4. Return the resolved proxy URL or undefined if none found.

      Parameters

      • targetUrl: undefined | string

        The URL for which to resolve a proxy.

      • OptionalsettingsProxy: string

        An optional proxy URL from application settings.

      Returns undefined | string

      The proxy URL to use, or undefined if no proxy should be used.