Skip to content

Commit a8e687a

Browse files
committed
interceptor update
1 parent 9a43625 commit a8e687a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/overview/interceptors.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ They execute additional logic before or after method invocation.
66
Inspired by the principles of [Aspect-Oriented Programming (AOP)](https://en.wikipedia.org/wiki/Aspect-oriented_programming){target="_blank"},
77
interceptors 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**
1616
Each interceptor class includes an `intercept()` method, accepting two parameters.

0 commit comments

Comments
 (0)