﻿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
31789	Add a cleaner interface for response headers	Tom Carrick	Tom Carrick	"This proposal is to replace `HttpResponse._headers` with `HttpResponse.headers` as a public interface using a variation of `django.utils.datasctructures.CaseInsensitiveMapping`.

It also includes updating tests and documentation to use this, rather than the old dict-like interface, i.e. `response.headers['Content-Type'] = 'application/json'`  `response['Content-Type'] = 'application/json'`.

The dict-like interface won't be deprecated, but will become undocumented, and tests added purely for backwards-compatibility.

[https://groups.google.com/u/2/g/django-developers/c/rlt1HhEaPaM Mailing list]
[https://github.com/django/django/pull/13186 PR]"	Cleanup/optimization	assigned	HTTP handling	master	Normal				Accepted	1	0	0	0	0	0
