mirror of
https://github.com/soypat/lneto.git
synced 2026-08-14 03:43:45 +00:00
add streaming API distinct from Exchange
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user