marqdo

lib/net — HTTP(S)ok

stdlib/net.mq.md

文档

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
Functions
Variables
  • description text
    Minimal HTTP(S) client and URL encode
  • e text
    hello%20world
  • markup text
    occlusion
  • title text
    lib/net — HTTP(S)
可执行知识(辅助)

文档中的步骤

结构步骤(非实际执行时序)

  1. call print

运行与结果

hello%20world
完整源码
---
markup: occlusion
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`

Variable