setPathSegmentOffsets

open fun setPathSegmentOffsets(pathSegmentOffsets: Int)

设置URL路径片段偏移量

示例:当 baseUrl为:http://host/a/b/c/ domainUrl为:http://domain/时,按照路径片段偏移量转换后的URL结果如下:

pathSegmentOffsets: 0 http://host/a/b/c/ -> http://domain/a/b/c/ pathSegmentOffsets: 1 http://host/a/b/c/ -> http://domain/b/c/ pathSegmentOffsets: 2 http://host/a/b/c/ -> http://domain/c/ pathSegmentOffsets: 3 http://host/a/b/c/ -> http://domain/

Parameters

pathSegmentOffsets