:sig
function parse_uri(uri : string) dval

:params
uri : the URI or URL text

:returns
the URI data

:content
`parse_uri()` returns URI parts as a `dval`.

Read the `parts` and `query` maps from the result. Use `parse_query()` when you only have query text.

:example capy render
var parsed := parse_uri("https://example.test/docs?name=Ada")
print(parsed["parts"]["path"], " ", parsed["query"]["name"], "\n")

:see-group
uri
