-
- All Implemented Interfaces:
-
com.facebook.flipper.plugins.common.BufferingFlipperPlugin.MockResponseConnectionListener,okhttp3.Interceptor
public class FlipperOkhttpInterceptor implements Interceptor, BufferingFlipperPlugin.MockResponseConnectionListener
-
-
Constructor Summary
Constructors Constructor Description FlipperOkhttpInterceptor(NetworkFlipperPlugin plugin)FlipperOkhttpInterceptor(NetworkFlipperPlugin plugin, long maxBodyBytes)If you want to change the number of bytes displayed for the body, use this constructor FlipperOkhttpInterceptor(NetworkFlipperPlugin plugin, boolean isMockResponseSupported)To support mock response, addIntercept must be used (instead of addNetworkIntercept) to allowshort circuit: https://square.github. FlipperOkhttpInterceptor(NetworkFlipperPlugin plugin, long maxBodyBytes, boolean isMockResponseSupported)
-
Method Summary
Modifier and Type Method Description Responseintercept(Interceptor.Chain chain)voidonConnect(FlipperConnection connection)voidonDisconnect()-
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)
-
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)
-
-
Method Detail
-
intercept
Response intercept(Interceptor.Chain chain)
-
onConnect
void onConnect(FlipperConnection connection)
-
onDisconnect
void onDisconnect()
-
-
-
-