I want to add my interceptor at runtime in okhttpclient, I am making Agent using bytebuddy in premain class. And i am trying to intercept the constructor of "okhttp3.OkHttpClient.Builder" to add my interceptor in the interceptors list. But the problem is that the type() method is unable to find my class, I've tried different ways for eg: ElementMatchers .is(), .nameStartsWith(), .nameContains(), named() etc. but couldn't find the class.
I know that okhttp uses Kotlin & java adds $ in the namespace to invoke some methods, so for my case i changed it to "okhttp3.OkHttpClient$Builder", but again it was not finding the matching class.
I also want to know my approach that am i doing the right way to add the custom interceptor.
Agent:
```java
```
--
You received this message because you are subscribed to the Google Groups "Byte Buddy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to byte-buddy+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/byte-buddy/dbabd997-5681-421f-b9ac-1f325379bca4n%40googlegroups.com.