Buffer headers with output in Response class