extract_domain


Description:

protected string extract_domain (string url)

Extract domain from URL and normalize to https://domain/ format.

Parameters:

url

The URL to extract domain from

Returns:

Normalized domain string (e.g., "https://example.com/") or empty string on error