Theia API Documentation v1.70.0
    Preparing search index...
    • Creates a custom fetch function that routes requests through the given HTTP proxy. Returns undefined if no proxy URL is provided.

      Parameters

      • proxyUrl: undefined | string

        The proxy URL to use, or undefined for no proxy.

      Returns
          | undefined
          | {
              (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
              (input: string | Request | URL, init?: RequestInit): Promise<Response>;
          }

      A custom fetch function using the proxy, or undefined.

      • undefined
      • {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        }
          • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
          • Parameters

            • input: RequestInfo | URL
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | Request | URL, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | Request | URL
            • Optionalinit: RequestInit

            Returns Promise<Response>