[Django] #26298: Interest in implementing a HttpResponseNoData subclass for HttpResponses?

8 views
Skip to first unread message

Django

unread,
Feb 29, 2016, 10:27:45 PM2/29/16
to django-...@googlegroups.com
#26298: Interest in implementing a HttpResponseNoData subclass for HttpResponses?
-------------------------------+--------------------
Reporter: afahim | Owner: nobody
Type: New feature | Status: new
Component: HTTP handling | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
Its a common use case to respond to requests with a 204, was wondering if
it would be nice to have a dedicated subclass for it.

https://docs.djangoproject.com/en/1.9/ref/request-response/#httpresponse-
subclasses

--
Ticket URL: <https://code.djangoproject.com/ticket/26298>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 1, 2016, 6:49:31 AM3/1/16
to django-...@googlegroups.com
#26298: Interest in implementing a HttpResponseNoData subclass for HttpResponses?
-------------------------------+--------------------------------------
Reporter: afahim | Owner: nobody
Type: New feature | Status: closed

Component: HTTP handling | Version: 1.9
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by alasdairnicol):

* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0


Comment:

This is a duplicate, e.g. of #3362, which was closed as won't fix. You can
either pass the 204 status code to HttpResponse, or subclass it in your
own project if you prefer.

--
Ticket URL: <https://code.djangoproject.com/ticket/26298#comment:1>

Reply all
Reply to author
Forward
0 new messages