okhttp / okhttp3 / HttpUrl / encodedPathSegments

encodedPathSegments

fun encodedPathSegments(): List<String>

Returns a list of encoded path segments like ["a", "b", "c"] for the URL http://host/a/b/c. This list is never empty though it may contain a single empty string.