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.
Optional
options: 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.
Optional
options: ProxyUrlOptions
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
istrue
, 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
istrue
, the function will returnundefined
instead to signal that there was no matching rule.