Package com.squareup.okhttp
Class AndroidInternal
- java.lang.Object
-
- com.squareup.okhttp.AndroidInternal
-
public class AndroidInternal extends Object
Back doors to enable the use of OkHttp within the Android platform libraries. OkHttp is used to provide the defaultHttpURLConnection/HttpsURLConnectionimplementation including support for a customResponseCache.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetResponseCache(OkUrlFactory okUrlFactory, ResponseCache responseCache)Sets the response cache to be used to read and write cached responses.
-
-
-
Method Detail
-
setResponseCache
public static void setResponseCache(OkUrlFactory okUrlFactory, ResponseCache responseCache)
Sets the response cache to be used to read and write cached responses.
-
-