HttpResponse object should return self when write() method is called
|Reported by:||Jonathan Sawyer||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by )
My use case:
HttpResponse.write() returns None initially. It would be really nice if .write() would return self so I can return an
HttpResponse object. Instead I have to take up an extra line of code (and in my application, that is a lot when duplicated).
An extension on this request could be that all public methods on
HttpResponse should return self.