• Splits a URL (or similar) string into a part containing its scheme and one containing the rest. E.g., http://test.com/ results in { scheme: 'http://', rest: 'test.com/' }.

    Parameters

    • url: string

      String to parse.

    Returns {
        rest: string;
        scheme: string;
    }

    • rest: string
    • scheme: string