Some driver could be enhanced by getting their response streamable :
fslike drivers : Create a RestFsResponseStream that takes a list of files (with one file for single fs drivers) and ouput them using fread instead of file_get_contents.
dblike/rowlike drivers : for drivers outputting datas that can be included in a CSV file with no loss should use a RestRowResponseStream object for sending response. For db, it should take in argument the fields list and the request (like the RestResponseSqlToCsv that should extend the newly created class)
varstreams : a RestVarResponseStream class should be used to output varstreams
Some driver could be enhanced by getting their response streamable :