deploy: ffe06d7afa
This commit is contained in:
commit
a4c04666b4
217 files changed
+506293
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: lib/net — HTTP(S)
|
||||
description: Minimal HTTP(S) client and URL encode
|
||||
import:
|
||||
net: lib/net.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | None; execute this page's documented steps in order and observe their output or stated effects |
|
||||
|
||||
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`).
|
||||
|
||||
We first **e = [Compute e](net.url_encode(text="hello world"))** for the next step.
|
||||
|
||||
We now **[Display this step's result](> print text=`e`)**.
|
||||
Reference in new issue
Block a user