Skip to main content

validate_endpoint

Function validate_endpoint 

Source
pub fn validate_endpoint(url: &str) -> Result<(), ValidationError>
Expand description

Validate a backend endpoint URL.

Only http:// and https:// are accepted. file://, javascript:, data URIs, and other schemes are rejected.