Capy-Bearer Documentation

parse_uri

lib call

Capy

function parse_uri(uri : string) any

Description

parse_uri() returns URI parts as an any.

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

Parameters

uri : the URI or URL text

Return Values

the URI data

Example

Capy

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

Output

docs Ada