These methods can be made asynchronous with one of the following
decorators: `.gen.coroutine`, `.return_future`, or `asynchronous`.
+ The arguments to these methods come from the `.URLSpec`: Any
+ capturing groups in the regular expression become arguments to the
+ HTTP verb methods (keyword arguments if the group is named,
+ positional arguments if its unnamed).
+
To support a method not on this list, override the class variable
``SUPPORTED_METHODS``::
def __init__(self, pattern, handler, kwargs=None, name=None):
"""Parameters:
- * ``pattern``: Regular expression to be matched. Any groups
- in the regex will be passed in to the handler's get/post/etc
- methods as arguments.
+ * ``pattern``: Regular expression to be matched. Any capturing
+ groups in the regex will be passed in to the handler's
+ get/post/etc methods as arguments (by keyword if named, by
+ position if unnamed. Named and unnamed capturing groups may
+ may not be mixed in the same rule).
* ``handler``: `RequestHandler` subclass to be invoked.
* ``name`` (optional): A name for this handler. Used by
`Application.reverse_url`.
+
"""
if not pattern.endswith('$'):
pattern += '$'