elasticsearch/elasticsearch — pull request #5612 by kimchy (2014-03-31 01:24:46+00:00)
Title: Cleanup Rest Response

simplify rest response class hierarchy, by using BytesReference for content, and handling JSONP internally in the respective channel that sends the response.
Also, handle the future case where bytes might be releasable, when we start to potentially recycle bytes output stream.