• Encode the components of a multi-segment url.

    Parameters

    • url: string

      The url to encode.

    Returns string

    the encoded url.

    Notes

    Preserves the '/' separators. Should not include the base url, since all parts are escaped.