Skip to content

Instantly share code, notes, and snippets.

View dovhoang's full-sized avatar
🏆
Focusing

Viet-Hoang Do dovhoang

🏆
Focusing
View GitHub Profile
@dovhoang
dovhoang / UnsafeHttpClient.kt
Created December 8, 2022 07:38 — forked from maiconhellmann/UnsafeOkHttpClient.kt
UnsafeHttpClient wrote in Kotlin
import okhttp3.OkHttpClient
import java.security.cert.CertificateException
import javax.net.ssl.SSLContext
import javax.net.ssl.TrustManager
import javax.net.ssl.X509TrustManager
class UnsafeOkHttpClient {
companion object {
fun getUnsafeOkHttpClient(): OkHttpClient.Builder {
try {