`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format` binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use` now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples, man-test and tests; adds a negative gold and updates view/catalog rendering. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
472 B
Markdown
14 lines
472 B
Markdown
---
|
|
title: lib/net — HTTP(S)
|
|
description: Minimal HTTP(S) client and URL encode
|
|
import net:lib/net.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
Import lib/net.mq.md. Functions: http_get, http_post, http_post_sse, openai_sse_parse, http_request, url_encode. HTTPS and optional headers= map are supported. Default post content-type is JSON. `http_post_sse` / `openai_sse_parse` return OpenAI chat stream event lists (`delta` / `done`).
|
|
|
|
*`e` = > net.url_encode text=hello world *
|
|
|
|
> print text=`e`
|