Python tornado.web.RequestHandler.SUPPORTED_METHODS Examples

The following are 6 code examples of tornado.web.RequestHandler.SUPPORTED_METHODS(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module tornado.web.RequestHandler , or try the search function .
Example #1
Source File: config_parser.py    From pfrock with Apache License 2.0 6 votes vote down vote up
def __init__(self, path, methods, handler, options={}):
        self.path = path
        self.handler = handler
        self.options = options
        self.methods = []

        if methods == "any":
            self.methods = []
        else:
            for method in methods:
                method = method.upper()
                if method in self.SUPPORTED_METHODS:
                    self.methods.append(method) 
Example #2
Source File: web_test.py    From tornado-zh with MIT License 4 votes vote down vote up
def other(self):
            # Even though this method exists, it won't get called automatically
            # because it is not in SUPPORTED_METHODS.
            self.write('other') 
Example #3
Source File: web_test.py    From tornado-zh with MIT License 4 votes vote down vote up
def other(self):
            # Even though this method exists, it won't get called automatically
            # because it is not in SUPPORTED_METHODS.
            self.write('other') 
Example #4
Source File: web_test.py    From viewfinder with Apache License 2.0 4 votes vote down vote up
def other(self):
            # Even though this method exists, it won't get called automatically
            # because it is not in SUPPORTED_METHODS.
            self.write('other') 
Example #5
Source File: web_test.py    From viewfinder with Apache License 2.0 4 votes vote down vote up
def other(self):
            # Even though this method exists, it won't get called automatically
            # because it is not in SUPPORTED_METHODS.
            self.write('other') 
Example #6
Source File: web_test.py    From EventGhost with GNU General Public License v2.0 4 votes vote down vote up
def other(self):
            # Even though this method exists, it won't get called automatically
            # because it is not in SUPPORTED_METHODS.
            self.write('other')