Method: flask.scaffold.Scaffold.url_defaults
Calls: 3, Exceptions: 0, Paths: 1Back
Path 1: 3 calls (1.0)
test_url_processors.
test_url_processors.
1@setupmethod
2 def url_defaults(self, f: T_url_defaults) -> T_url_defaults:
3 """Callback function for URL defaults for all view functions of the
4 application. It's called with the endpoint and values and should
5 update the values passed in place.
6
7 This is available on both app and blueprint objects. When used on an app, this
8 is called for every request. When used on a blueprint, this is called for
9 requests that the blueprint handles. To register with a blueprint and affect
10 every request, use :meth:`.Blueprint.app_url_defaults`.
11 """
12 self.url_default_functions[None].append(f)
13 return f