David Stanek <dsta...@dstanek.com> added the comment:

I have attached a patch to add support for HEAD, PUT and DELETE methods. The 
code review is available here: http://codereview.appspot.com/1696061.

I have started working on another patch that validates that the method is 
properly set. For instance, it doesn't make sense to have a HEAD or DELETE with 
post data. The problem is that the interface is so wide open that it is hard to 
catch all possible user errors. A user could call Request.__init__ correctly, 
but then set req.method to an invalid method. If there is some interest I'll 
finish up the patch.

----------
nosy: +dstanek
Added file: http://bugs.python.org/file18369/1673007_methods.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1673007>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to