title: Progress feedback in stateless HTTP session
body: <p>I need to program a stateless server to execute remote methods. The client uses REST with a JSON parameter to pass the method name and its parameters. After servicing the result the session is closed. I have to use Indy10, TCP/IP as protocol, and therefore look at using IdHTTPServer.</p>
  
  <p>Large result sets are chunked by Indy10 and sent to the client in parts.</p>
  
  <p>My problem now is:</p>
  
  <p>The methods on the server provide progress information if they take longer to produce the results. These are short messages. How can I write back to the client?</p>
  
  <p>So far I have used <code>writeflush</code> on the server, but the client waited for the request to end before handing back the full resultset, including the progress information. What can I do to display/process such progress information on the client and yet keep the connection open to receive further data on the same request?</p>