This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年09月13日 13:07 by tarek, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| request_custom_method.patch | tarek, 2010年09月13日 13:07 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg116301 - (view) | Author: Tarek Ziadé (tarek) * (Python committer) | Date: 2010年09月13日 13:07 | |
Right now you have to override Request or patch its get_method() method to be able to send HTTP requests where the method is not GET or POST. This is making some assumptions on what the users wants to do with the request. The way get_method guesses the method is good enough in most cases, but I think it would be good to let advanced developers provide their own method when they build a request. This would avoid unnecessary boiler-plate code to be able to customize the method. |
|||
| msg116302 - (view) | Author: Tarek Ziadé (tarek) * (Python committer) | Date: 2010年09月13日 13:09 | |
sorry - Removed the assignment (the name is not followed by *) |
|||
| msg116969 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2010年09月20日 20:36 | |
+1 on the idea and code patch. Needs test and doc update. |
|||
| msg154627 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2012年02月29日 13:09 | |
Python 3.3 supports this. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:06 | admin | set | github: 54054 |
| 2012年02月29日 13:09:45 | eric.araujo | set | status: open -> closed versions: + Python 3.3, - Python 3.2 superseder: urllib2 requests history + HEAD support messages: + msg154627 resolution: duplicate stage: patch review -> resolved |
| 2010年09月20日 20:36:43 | eric.araujo | set | versions:
+ Python 3.2, - Python 3.3 nosy: + eric.araujo messages: + msg116969 stage: patch review |
| 2010年09月13日 13:09:25 | tarek | set | assignee: orsenthil -> messages: + msg116302 |
| 2010年09月13日 13:07:14 | tarek | create | |