test_download_stream

test_download_stream写操作流式接口
测试下载流(推送 10 个数据帧,验证流式传输,不触达 QQ)

Call via POST http://127.0.0.1:3000/test_download_stream (JSON params as the body) or WebSocket.

Parameters

Param Type Required Default Description
error bool false 是否触发测试错误

Returns (data)

流式帧:data_chunk*10 → data_complete(error=true 时以 error 帧结束)

Returns the standard OneBot envelope; the data shape is not yet documented.

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/test_download_stream \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"error":false}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.