Skip to content
Anirudh Ramanan edited this page Jul 15, 2016 · 1 revision

NetworkInterceptor which implements the Interceptor interface of the okhttp, is the entry point to this library. It follows the builder design pattern.

This class which intercepts all the requests & responses passes it on to the NetworkInterpreter class along with the TimeInfo object. In case of any network related exception, all these exceptions are also bubbled to the same interpreter.

You can at anytime disable the NetworkInterceptor to report the calls to the NetworkInterpreter class for further functioning.

By default, the NetworkInterceptor is enabled.

Clone this wiki locally