queryIterator
Returns an iterator over the query parameters of the URI.
This extension function provides a way to iterate over the query parameters of a URI in a for
loop or other iteration constructs.
Each iteration step will return a Pair<String, String>
, where the first element is the query parameter name and the second element is one of its values. If a parameter has multiple values, each value will be returned in a separate iteration step.
Example usage:
for ((param, value) in uri.queryIterator()) {
...
}
Content copied to clipboard
Return
an iterator over the query parameters of the URI.
Important: This is a Public Preview API. It may be changed or removed at any time.