Package 

Class OkHttpClient.Builder

    • Method Summary

      Modifier and Type Method Description
      static void _preBuild(OkHttpClient.Builder thiz) As there was a way to clear the injected interceptors during the OkHttpClientinitialization using the builder, we are hooking the build method as well, instead ofjust the Builder constructor.
      static void _constructorOnPostBody(OkHttpClient.Builder thiz)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • _preBuild

         static void _preBuild(OkHttpClient.Builder thiz)

        As there was a way to clear the injected interceptors during the OkHttpClientinitialization using the builder, we are hooking the build method as well, instead ofjust the Builder constructor.

        Once the build method is called, OkHTTP mushes everything and returns the OkHttpClientinstance, where the developer has no way to alter any of the interceptors during orafter this point, without having to rebuild the client.