I'd like to propose some simple improvements to django.views.generic.base.View:
1. To complement the automatic HTTP 405 response, provide a default implementation of the HTTP OPTIONS method. This default response would have an HTTP 204 NO CONTENT status and include an Allow response header just like that of the 405 response (django.http.HttpResponseNotAllowed). Developers could easily override this method to provide more info about endpoint or server capabilities. 2. Improve the default HTTP HEAD handler by ensuring it has a blank body, as this is the expectation of a response to a HEAD request. Also, there should be consideration for the GET handler not existing, which should result in a 405. The code appears to assume it exists, which would result in an AttributeError instead. If these are generally agreed upon I'll supply the patch. -- Steven -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.