public abstract class OkHttpExtension extends Object
| Constructor and Description |
|---|
OkHttpExtension() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.gradle.api.provider.Property<Integer> |
getCacheSize()
Size in bytes for the internal
HTTP cache. |
abstract org.gradle.api.provider.Property<Boolean> |
getForceCache() |
abstract org.gradle.api.provider.Property<Boolean> |
getForceNetwork() |
abstract org.gradle.api.provider.Property<okhttp3.logging.HttpLoggingInterceptor.Level> |
getLoggingLevel() |
public abstract org.gradle.api.provider.Property<okhttp3.logging.HttpLoggingInterceptor.Level> getLoggingLevel()
public abstract org.gradle.api.provider.Property<Integer> getCacheSize()
HTTP cache.
Setting this to 0 disables the cache.public abstract org.gradle.api.provider.Property<Boolean> getForceCache()
public abstract org.gradle.api.provider.Property<Boolean> getForceNetwork()