Skip to content

okhttp / okhttp3 / HttpUrl / encodedPathSegments

encodedPathSegments

val encodedPathSegments:List<String>

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.

URL encodedPathSegments()
http://host/ [""]
http://host/a/b/c ["a", "b", "c"]
http://host/a/b%20c/d ["a", "b%20c", "d"]