Function: isProxyUrl()
ts
function isProxyUrl(url): boolean;Defined in: parse.ts:458
Whether a string is a delivery proxy URL, without parsing it or throwing. Distinct from isProxyEndpoint, which only inspects the host.
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
boolean
See
https://uploadcare.com/docs/delivery/proxy/
Example
ts
isProxyUrl('https://pk.ucr.io/https://example.com/a.jpg') // → true