• Returns an URL to fetch the resource at target that uses a proxy server if necessary.

    By default, a proxy server will only be used if there is a matching proxy server rule. If force is true, the default proxy (if configured) will always be used if no other rule matches.

    The default configuration always returns a valid URL, even if no proxy server will be used. If check is true, the function will return undefined instead to signal that there was no matching rule.

    Parameters

    Returns URL

  • Returns an URL to fetch the resource at target that uses a proxy server if necessary.

    By default, a proxy server will only be used if there is a matching proxy server rule. If force is true, the default proxy (if configured) will always be used if no other rule matches.

    The default configuration always returns a valid URL, even if no proxy server will be used. If check is true, the function will return undefined instead to signal that there was no matching rule.

    Parameters

    Returns URL

  • Returns an URL to fetch the resource at target that uses a proxy server if necessary.

    By default, a proxy server will only be used if there is a matching proxy server rule. If force is true, the default proxy (if configured) will always be used if no other rule matches.

    The default configuration always returns a valid URL, even if no proxy server will be used. If check is true, the function will return undefined instead to signal that there was no matching rule.

    Parameters

    Returns URL | undefined