def shard_dump (self, *args, **kwargs):
        worker = args[0]
        payload, start_response, body = worker.get_response_context(args[1:])

        if worker.auth_request(payload, start_response, body):
            start_response('200 OK', [('Content-Type', 'application/json')])
            body.put(dumps({ "fields": self.results[0]._fields, "results": self.results }))
            body.put("\r\n")
            body.put(StopIteration)
dump the results
dataset/ETHPy150Open ceteri/exelixi/src/contain.py/ContainerUOW.shard_dump