Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/httpx
/ is_ipv6_hostname
Function
is_ipv6_hostname
httpx/_utils.py:237–242 ·
view source on GitHub ↗
(hostname: str)
Source
from the content-addressed store, hash-verified
235
236
237
def
is_ipv6_hostname(hostname: str) -> bool:
238
try
:
239
ipaddress.IPv6Address(hostname.split(
"/"
)[0])
240
except
Exception:
241
return
False
242
return
True
Callers
1
get_environment_proxies
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected