class documentation
This class wraps a route callback along with route specific metadata and configuration and applies Plugins on demand. It is also responsible for turing an URL path rule into a regular expression usable by the Router.
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | all |
Yield all Plugins affecting this route. |
Method | get |
Return a list of argument names the callback (most likely) accepts as keyword arguments. If the callback is a decorated function, try to recover the original function before inspection. |
Method | get |
Lookup a config field and return its value, first checking the route.config, then route.app.config. |
Method | get |
Return the callback. If the callback is a decorated function, try to recover the original function. |
Method | prepare |
Do all on-demand work immediately (useful for debugging). |
Method | reset |
Forget any cached values. The next time :attr:`call` is accessed, all plugins are re-applied. |
Instance Variable | app |
Undocumented |
Instance Variable | callback |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | method |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | plugins |
Undocumented |
Instance Variable | rule |
Undocumented |
Instance Variable | skiplist |
Undocumented |
Property | call |
The route callback with all plugins applied. This property is created on demand and then cached to speed up subsequent requests. |
Method | _make |
Undocumented |
Property | _context |
Undocumented |
def __init__(self, app, rule, method, callback, name=None, plugins=None, skiplist=None, **config):
(source)
¶
Undocumented
Return a list of argument names the callback (most likely) accepts as keyword arguments. If the callback is a decorated function, try to recover the original function before inspection.