OkHttpCompat

open class OkHttpCompat

Helper class that provides wrappers for compatibility between different OkHttp versions.

This is required for Kotlin code compatibility, in particular, therefore if you are going to migrate this file to Kotlin, please first ensure that there is no OkHttp API discrepancy between different RN platform environments, and then consider getting rid of this compat layer altogether.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getCookieJarContainer(client: OkHttpClient): CookieJarContainer
Link copied to clipboard
open fun getHeadersFromMap(@Nullable headers: Map<String, String>): Headers