https://gitlab.synchro.net/main/sbbs/-/commit/25b5c0296eab69d9c1f4141b
Modified Files:
exec/load/http.js
Log Message:
http.js: add PostStreaming() for HTTP/1.1 chunked-transfer responses
Adds three methods to HTTPRequest:
- SetupPostStreaming() -- like Post()'s setup but HTTP/1.1 and no
automatic body collection
- ReadChunkedBody(on_chunk) -- reads chunked-transfer-encoded body,
invokes on_chunk(text) per chunk
- PostStreaming(url, data, on_chunk, ...) -- POST + streamed read;
returns the full accumulated body after the stream completes.
Falls back gracefully if the server returns non-chunked Content-Length
(single on_chunk call with the whole body).
Needed by exec/chat_llm.js for streaming Ollama responses (SSE / chunked transfer) in the LLM-chat module. Purely additive -- existing Post() /
Get() behavior unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net