I have some static files on the server, and when a user click download, I want the server to zip the files and send to the client at the same time (instead buffering it in server's memory or writing to local disk file system first.), just like when you download a repo from GitHub.
Transfer-Encoding: chunked
need to be used I guess.
question related to Examples that send unkown size data with http chunked header?