pub fn check_public_url(url: &str) -> Result<(), A2aError>Expand description
Refuses url unless it points outside the server’s own network.
That is: http/https, to a host outside private, loopback,
link-local and internal ranges. No DNS lookup is made, so a
public-looking name can still resolve inward: use
resolve_public_url before connecting.
§Errors
InvalidParams naming the URL and what is wrong with it.