def raw_host(self):
        """Encoded host part of URL.

        None for relative URLs.

        """
        # Use host instead of hostname for sake of shortness
        # May add .hostname prop later
        return self._val.hostname
Encoded host part of URL.

        None for relative URLs.

        
lib/yarl/_url.py