Package 

Class FlipperOkhttpInterceptor

  • All Implemented Interfaces:
    com.facebook.flipper.plugins.common.BufferingFlipperPlugin.MockResponseConnectionListener , okhttp3.Interceptor

    
    public class FlipperOkhttpInterceptor
     implements Interceptor, BufferingFlipperPlugin.MockResponseConnectionListener
                        
    • Method Summary

      Modifier and Type Method Description
      Response intercept(Interceptor.Chain chain)
      void onConnect(FlipperConnection connection)
      void onDisconnect()
      • Methods inherited from class okhttp3.Interceptor

        intercept
      • Methods inherited from class com.facebook.flipper.plugins.common.BufferingFlipperPlugin.MockResponseConnectionListener

        onConnect, onDisconnect
      • Methods inherited from class java.lang.Object

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

      • FlipperOkhttpInterceptor

        FlipperOkhttpInterceptor(NetworkFlipperPlugin plugin, long maxBodyBytes)
        If you want to change the number of bytes displayed for the body, use this constructor
      • FlipperOkhttpInterceptor

        FlipperOkhttpInterceptor(NetworkFlipperPlugin plugin, boolean isMockResponseSupported)
        To support mock response, addIntercept must be used (instead of addNetworkIntercept) to allowshort circuit: https://square.github.
      • FlipperOkhttpInterceptor

        FlipperOkhttpInterceptor(NetworkFlipperPlugin plugin, long maxBodyBytes, boolean isMockResponseSupported)