add streaming API distinct from Exchange

This commit is contained in:
Patricio Whittingslow
2026-07-26 12:18:52 -03:00
parent 6d88506541
commit 92cf46e570
5 changed files with 129 additions and 10 deletions
+1 -1
View File
@@ -100,5 +100,5 @@ func homepage(exch *httphi.Exchange) {
exch.StageHeader("Content-Type", "text/html")
exch.StageHeaderInt("Content-Length", int64(n), 10)
exch.WriteHeader(int(httphi.StatusOK))
exch.Write(page[:n])
exch.WriteBody(page[:n])
}