Method: flask.blueprints.Blueprint.app_url_value_preprocessor
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
test_app_url_processors.
test_app_url_processors.
1@setupmethod
2 def app_url_value_preprocessor(
3 self, f: T_url_value_preprocessor
4 ) -> T_url_value_preprocessor:
5 """Like :meth:`url_value_preprocessor`, but for every request, not only those
6 handled by the blueprint. Equivalent to :meth:`.Flask.url_value_preprocessor`.
7 """
8 self.record_once(
9 lambda s: s.app.url_value_preprocessors.setdefault(None, []).append(f)
10 )
11 return f