turned the response into a generator