Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
479 B
479 B
title, description, import
| title | description | import | ||
|---|---|---|---|---|
| lib/net — HTTP(S) | Minimal HTTP(S) client and URL encode |
|
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