I have a server call that allows me to query for tens of thousands of
instances of an object (based on query string).

I'd like to use the REST interface to do this, but it seems like rest
only supports returning of an array of the objects. Assuming the data to
return is streamed from somewhere (a database), this means I need to
load every row into memory and build the object in memory before returning.

With the simple web interface, i can write the data to the
HTTPServerResponse as I read it from the database. Is there an
equivalent way to do this for the REST interface, so I'm not loading
everything in memory?

-Steve