validateEndpointUrl
function validateEndpointUrl( url, options?, basePath?): ValidationResult;Defined in: src/validation.ts:127
Validate an endpoint destination URL: parseable, https: (or http: for
localhost, or anywhere when allowInsecureUrls), no embedded credentials,
and passing the host’s optional urlPolicy gate.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
url |
string |
undefined |
options? |
UrlPolicyOptions |
{} |
basePath? |
string |
"endpoint.url" |
Returns
Section titled “Returns”ValidationResult