should override the class variable SUPPORTED_METHODS in your
RequestHandler class.
"""
- SUPPORTED_METHODS = ("GET", "HEAD", "POST", "DELETE", "PUT")
+ SUPPORTED_METHODS = ("GET", "HEAD", "POST", "DELETE", "PUT", "OPTIONS")
def __init__(self, application, request, **kwargs):
self.application = application
def put(self, *args, **kwargs):
raise HTTPError(405)
+ def options(self, *args, **kwargs):
+ raise HTTPError(405)
+
def prepare(self):
"""Called before the actual handler method.