Open
Description
Hello, I'd like to see something like Interceptor
s on the server side, but more akin to the UnaryInterceptor of gRPC-Web. This is something I have appreciated from other server frameworks. This style of interceptor would "wrap" around the service call, which yields the existing functionality of Interceptor
s (such as vetoing a request) and more. Such "wrapping" interceptors would be able to manipulate both the incoming request as well as the outgoing response.
There are several interesting use cases for this. One such use case would be instrumenting all service calls in a uniform way.
Interceptor 1
| Interceptor 2
| | Interceptor 3
| | | service call
| | Interceptor 3
| Interceptor 2
Interceptor 1