Opened 19 years ago
Closed 19 years ago
#2174 closed enhancement (invalid)
Add HTTP Method to Request Object
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'd like to see the HTTP Method added to the request object. This piece of information would allow me to verify that methods meant to process POST data only work when the request is a POST request. It would also allow me to develop RESTful web applications/services.
Note:
See TracTickets
for help on using tickets.
This is already available via
request.META['REQUEST_METHOD']
.