def strip_http_prefix()

in google/cloud/alloydb/connector/utils.py [0:0]


def strip_http_prefix(url: str) -> str:
    """
    Returns a new URL with 'http://' or 'https://' prefix removed.
    """
    m = re.search(r"^(https?://)?(.+)", url)
    if m is None:
        return ""
    return m.group(2)