File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ They execute additional logic before or after method invocation.
66Inspired by the principles of [ Aspect-Oriented Programming (AOP)] ( https://en.wikipedia.org/wiki/Aspect-oriented_programming ) {target="_ blank"},
77interceptors offer several functionalities:
88
9- - Pre- and post-processing of method executions.
10- - Transformation of return values.
11- - Handling exceptions thrown during execution.
12- - Extension of method behavior.
13- - Conditional method override, useful for tasks like caching.
9+ - bind extra logic before / after route function execution
10+ - transform the result returned from a route function
11+ - transform the exception thrown from a route function
12+ - extend the basic route function behavior
13+ - completely override a route function depending on specific conditions (e.g., for caching purposes)
1414
1515## ** Basic**
1616Each interceptor class includes an ` intercept() ` method, accepting two parameters.
You can’t perform that action at this time.
0 commit comments