create Ok Http Client

fun createOkHttpClient(    ctx: Context,     interceptors: Array<Interceptor>,     authenticator: Authenticator?,     pinner: CertificatePinner?,     showDebugLog: Boolean): OkHttpClient

Method to create OkHttpClient with provided data

Return

OkHttpClient to implement at reactive service

Parameters

interceptors

list of Interceptors, define header or action with header here

authenticator

the Authenticator, or basic username and basic password

pinner

CertificatePinner for SSL pinning configuration, nullable

showDebugLog

display Debug Log?

Sources

Link copied to clipboard