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.
Optionaloptions: ProxyUrlOptions & { check?: false }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.
Optionaloptions: ProxyUrlOptions
Returns an URL to fetch the resource at
targetthat uses a proxy server if necessary.By default, a proxy server will only be used if there is a matching proxy server rule. If
forceistrue, 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
checkistrue, the function will returnundefinedinstead to signal that there was no matching rule.