MCPcopy Create free account
hub / github.com/microsoft/playwright-python / to_websocket_base_url

Function to_websocket_base_url

playwright/_impl/_helper.py:181–184  ·  view source on GitHub ↗
(base_url: Optional[str])

Source from the content-addressed store, hash-verified

179
180
181def to_websocket_base_url(base_url: Optional[str]) -> Optional[str]:
182 if base_url is not None and re.match(r"^https?://", base_url):
183 base_url = re.sub(r"^http", "ws", base_url)
184 return base_url
185
186
187def resolve_glob_base(base_url: Optional[str], match: str) -> str:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected