Its probably not worth changing it if it is eg in a file already, but if the process to generate it is a slow one it might be.
On the server side, you may run into an error after you started writing out your reply. That may cause an incomplete reply. It may require more involved error handling between the server and client. 'Gather first write later' approach gives you a simpler error propagation between server and client.