docs(lib): narrate remaining stdlib modules (M2)
Add module intros and per-function purpose lines across EN/ZH libs, with callable examples on the smaller modules; keep + params and host bodies intact. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
53bc3538da
commit
fecaacd5be
49 files changed
+617
-21
No files matched your search
+8
-2
@@ -3,21 +3,27 @@ title: lib/url
|
||||
description: Parse URLs and query strings (Mid2 M7). Segment encoding stays in net.url_encode.
|
||||
---
|
||||
|
||||
Parse URLs and query strings. Segment encoding stays in net.url_encode.
|
||||
|
||||
## parse
|
||||
+ `text`
|
||||
|
||||
Returns `{scheme, userinfo, host, port, path, query, fragment}`.
|
||||
Parse URL text into scheme, userinfo, host, port, path, query, fragment.
|
||||
|
||||
Caller: [url.parse] text=`u`
|
||||
|
||||
*> host_url_parse text=`text`*
|
||||
|
||||
## query_parse
|
||||
+ `text`
|
||||
|
||||
Parse `a=1&b=2` into a map; repeated keys become a list.
|
||||
Parse a=1&b=2 into a map; repeated keys become a list.
|
||||
|
||||
*> host_url_query_parse text=`text`*
|
||||
|
||||
## query_stringify
|
||||
+ `map`
|
||||
|
||||
Build a query string from map.
|
||||
|
||||
*> host_url_query_stringify map=`map`*
|
||||
Reference in new issue
Block a user