Capy-Bearer Documentation

parse_uri

host call

Capy

function parse_uri(uri : string) dval

Description

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.

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")