asynchronous - Can I begin sending a web response before it is complete using Node.js? -
the first portion of response static, go head , send portion of page , send rest after has been compiled. possible using node.js?
yes, absolutely. can whatever want.
just .write()
data response object. won't disconnect until .end()
. bonus, node set chunked encoding automatically. there nothing more have do.
Comments
Post a Comment