Lines Matching defs:hostname
165 def hostname(self):
166 hostname = self._hostinfo[0]
167 if not hostname:
171 separator = '%' if isinstance(hostname, str) else b'%'
172 hostname, percent, zone = hostname.partition(separator)
173 return hostname.lower() + percent + zone
211 hostname, _, port = bracketed.partition(']')
214 hostname, _, port = hostinfo.partition(':')
217 return hostname, port
241 hostname, _, port = bracketed.partition(b']')
244 hostname, _, port = hostinfo.partition(b':')
247 return hostname, port
382 The username, password, hostname, and port sub-components of netloc
441 def _check_bracketed_host(hostname):
442 if hostname.startswith('v'):
443 if not re.match(r"\Av[a-fA-F0-9]+\..+\Z", hostname):
446 ip = ipaddress.ip_address(hostname) # Throws Value Error if not IPv6 or IPv4
461 The username, password, hostname, and port sub-components of netloc