﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16398	HttpResponse object should return self when write() method is called	Jonathan Sawyer	nobody	"My use case:
{{{
#!python
# Current procedure
def myview(req):
    resp = HttpResponse(mimetype='application/javascript')
    resp.write(json.dumps({'msg': 'Hello World!'}))
    return resp

# Desired procedure
def myview(req):
    resp = HttpResponse(mimetype='application/javascript')
    return resp.write(json.dumps({'msg': 'Hello World!'}))

}}}
`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."	New feature	closed	HTTP handling	1.3	Normal	invalid			Unreviewed	1	0	0	0	1	0
