//okhttp/okhttp3/HttpUrl/pathSize
pathSize¶
[jvm]\
@get:JvmName(name = "pathSize")
The number of segments in this URL’s path. This is also the number of slashes in this URL’s path, like 3 in http://host/a/b/c
. This is always at least 1.
URL | pathSize() |
---|---|
http://host/ |
1 |
http://host/a/b/c |
3 |
http://host/a/b/c/ |
4 |