#9943: Implement the rest of the HTTP require_* decorators and HttpResponse*
classes
-----------------------------+----------------------------------------------
Reporter: zhirsch | Owner: nobody
Status: new | Milestone:
Component: HTTP handling | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------------+----------------------------------------------
Hi,
I've been using Django to implement a few JSON web services, and I've
found myself writing the (trivial) {{{require_PUT}}},
{{{require_DELETE}}}, etc. decorators to parallel those already defined in
{{{django/views/decorators/http.py}}}. I've also found myself writing the
(again, trivial) {{{HttpResponseCreated}}}, {{{HttpResponseNoContent}}},
etc. classes to parallel those in {{{django/http/__init__.py}}}.
I think it would be nice if these were built-in to Django, since they're
easy to write, don't cause much overhead, and are pretty useful to have.
Rather than cherry-pick the ones that I've used, or the ones that I think
would be most useful, I've just done through the HTTP RFC and added them
all. A patch is attached.
Thanks,[[BR]]
-Zach
--
Ticket URL: <http://code.djangoproject.com/ticket/9943>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---