OkHttp

actual object OkHttp
expect object OkHttp
actual object OkHttp

Properties

Link copied to clipboard
actual val VERSION: String
expect val VERSION: String

This is a string like "5.0.0", "5.0.0-alpha.762", or "5.3.0-SNAPSHOT" indicating the version of OkHttp in the current runtime. Use this to include the OkHttp version in custom User-Agent headers.

actual val VERSION: String

Functions

Link copied to clipboard
fun initialize(applicationContext: Context)

Configure the ApplicationContext. Not needed unless the AndroidX Startup Initializer is disabled, or running a robolectric test.