Skip to content

[Feature Request] server-side "wrapper" interceptors #591

Open
@cbatson

Description

@cbatson

Hello, I'd like to see something like Interceptors 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 Interceptors (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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions