Files
marqdo/tests/lib/url-smoke.mq.md
T
cflmyandCursor abcb141737 refactor: prefer link-index get across examples and tests
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 12:54:38 +08:00

538 B


title: lib/url smoke import url:lib/url.mq.md

main

u = > url.parse text="https://example.com:8443/a/b?x=1&y=2#frag"

print text=scheme print text=host print text=port print text=path print text=query print text=fragment

q = > url.query_parse text="a=1&b=hi%20x&a=2"

print text=b as = a a0 = > at value=as index=0 a1 = > at value=as index=1 print text=a0 print text=a1

s = > url.query_stringify map=q

print text=s