UCE Docs / parse_uri

Signature

URI parse_uri(String uri_string)

Parameters

uri_string : URI or URL string
return value : URI object with parts and query maps

Parses a URI into its component maps.

return.parts contains the parsed URI fields. return.query contains query parameters decoded with the same rules as parse_query().

Example:

Use parse_uri() when you need to inspect a full URL. Use parse_query() when you only have the query string.

Example

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