appendPathSegments

abstract fun appendPathSegments(pathSegments: List<String>): URLBuilder

向 URL 的路径部分追加一个或多个路径段。 例如,在 http://example.com/api 上调用 appendPathSegments(listOf("v1", "users")) 将得到 `http://example.com/api/v1/users`。

Return

返回自身(URLBuilder),以支持链式调用。

Parameters

pathSegments

要追加的路径段列表。