django/django — pull request #2545 by Osmose (2014-04-14 17:22:41+00:00)
Title: Fixed #18523 -- Added stream-like API to HttpResponse.

Added getvalue() to HttpResponse to return the content of the response,
along with a few other methods to partially match io.IOBase.

I only added the methods/changes mentioned by unaizalakain in https://code.djangoproject.com/ticket/18523. If you want to add the rest of the methods from `io.IOBase`, let me know, I'm happy to make it fully compatible. :D