I’m working on an application that uses a custom scheme (ie. myscheme://someurl) for the input target. I’ve implemented a NameResolverProvider
that handles that custom scheme but replacing the authority value (someurl) with the correct url.
Now I’m creating an interceptor that assigns some headers based on that original target value (someurl). However, from within a ClientInterceptor
I only seem to have access to the resolved value.
In ManagedChannelBuilder
there does seem to be a protected method called interceptWithTarget()
that passes the original value to the interceptor but I do not have access to call this as its intended for internal use only.
How can I retrieve the original “target” value, before name resolution?