-
public final 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)-
-
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.
-
_constructorOnPostBody
static void _constructorOnPostBody(OkHttpClient.Builder thiz)
-
-
-
-