go-safeweb icon indicating copy to clipboard operation
go-safeweb copied to clipboard

Support Interceptor Wrapping

Open empijei opened this issue 3 years ago • 1 comments

For various reasons (e.g. experiments) it might be useful to wrap interceptors.

The problem is that once an interceptor gets wrapped, it will not be matched to its configurations anymore.

I propose to add the following feature:

When a Mux is constructed we match configs with their interceptor, but we also check if the the interceptor has a

Unwrap() Interceptor

method on it.

If so, we recursively check configs against the inner interceptors.

empijei avatar May 27 '21 10:05 empijei

Is my understanding correct that we don't need anything extra to support this case? Maybe just a GoDoc example?

kele avatar Jun 02 '21 09:06 kele