//okhttp/okhttp3/HttpUrl/pathSegments
pathSegments¶
[jvm]\
@get:JvmName(name = "pathSegments")
val pathSegments: List<String>
A list of 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 | pathSegments() |
---|---|
http://host/ |
[""] |
http://host/a/b/c" |
["a", "b", "c"] |
http://host/a/b%20c/d" |
["a", "b c", "d"] |