Файли
openidea/docs/zh/plugins/api
l0ng-ai 1ec634619c feat(plugins): read HTTP responses as they arrive with net.fetch-stream (#6859)
Plugin API 1.19 adds net.fetch-stream: it returns a response-stream once the headers arrive, and the body is read piece by piece with a timeout (read returns nothing with done=false when no bytes came in time). It applies the same grants, net:ask, secrets, body limit and redirect checks as fetch, which now shares the request builder; at most eight streams per plugin, closed on resource drop or plugin stop. The SDK adds host::fetch_stream, ResponseStream and an incremental text/event-stream parser (ResponseStream::events), with mock support; components are rebuilt for the new WIT.

Fixes #6844
2026-11-29 22:49:50 +08:00
..