cleanup, docs
This commit is contained in:
@@ -18,11 +18,9 @@ Parses a URI into its component maps.
|
||||
|
||||
Example:
|
||||
|
||||
```uce
|
||||
URI uri = parse_uri("https://example.test/docs/index.uce?q=uce#top");
|
||||
String host = uri.parts["host"];
|
||||
String path = uri.parts["path"];
|
||||
String q = uri.query["q"];
|
||||
```
|
||||
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user