Streams and Proxy
Java uses net.requestStreamAsync(url, NetOptions); the Future yields a Net.StreamResult extending InputStream. Python uses self.net.openStream(url, options) and QuickJS uses await net.openStream(url, options). Close with try-with-resources, with or finally.
Pass-through
Put the following snippet in the matching proxy method. Once delivered the App closes the stream; if you do not deliver it, close it yourself. A QuickJS handle is valid for one proxy call only — never store it in Local or the cache. Java needs the Net and NetOptions imports.
Java Demo.java / proxy
Python spider.py / localProxy
QuickJS spider.js / proxy
Custom stream bodies
Python uses self.net.stream(generator()), yielding bytes/bytearray/contiguous memoryview; QuickJS uses await net.stream(asyncGenerator()), yielding ArrayBuffer/TypedArray. Put the response stream in the third proxy slot; in Java return a custom InputStream.
Generators run only when the player reads, and accept no HTTP options. Open readers inside the generator and close them with with/finally; when the App closes the body it cancels pending stream requests and reads, then closes the generator.
For live TV, callTimeout: 0 removes the overall HTTP deadline while timeout still prevents a stuck read; the demo uses 15 seconds. Read size, EOF and cancellation limits are in the development notes.
In a Java Object[] response the third slot must be an InputStream or Net.StreamResult; it cannot be a string or bytes. See Proxy response for the full format.