This function validates a URL by checking the presence of a scheme and a hostname in the parsed URL.
Details
The function uses the httr2::url_parse
function to parse the URL
and checks if the parsed URL contains a scheme and a hostname. If either
is missing, the URL is considered invalid.