Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pallets/werkzeug
/ is_valid_url
Function
is_valid_url
examples/shortly/shortly.py:29–31 ·
view source on GitHub ↗
(url)
Source
from the content-addressed store, hash-verified
27
28
29
def
is_valid_url(url):
30
parts = urlsplit(url)
31
return
parts.scheme in (
"http"
,
"https"
)
32
33
34
def
get_hostname(url):
Callers
1
on_new_url
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected