diego-gomez-olvera
05/05/2022, 3:51 PMOkHttp
and NSUrlSession
with code like:
// Android
public fun newHttpClient(nativeClient: OkHttpClient): HttpClient {
return HttpClient(OkHttp){
engine {
preconfigured = nativeClient
}
}
}
// iOS
public fun newHttpClient(nativeSession: NSURLSession): HttpClient {
return HttpClient(Darwin) {
engine {
configureSession { // how to do the same as Android?
}
}
}
}
I was wondering if someone uses this approach, and how does he/she configures the iOS HttpClient
Karan Jhinga
12/13/2022, 10:39 AMdiego-gomez-olvera
12/16/2022, 9:22 AMexpect
/ actual
for the networking with two implementations for now