xxfast
05/18/2022, 3:25 AMcommonMain
. Given that this ssl-disabling is slightly different for each engine, is there a way to do this neatly for each engine without having to `expect`/`actual` the whole engines for each platforms?Michael Friend
05/18/2022, 3:05 PMxxfast
05/19/2022, 12:26 AM@HttpClientDsl
expect fun HttpClient(
block: HttpClientConfig<*>.() -> Unit = {}
): HttpClient
//androidMain
@HttpClientDsl
actual fun HttpClient(
block: HttpClientConfig<*>.() -> Unit,
): HttpClient = HttpClient(CIO) {
engine {
https {
trustManager = TrustAllManager
}
}
block()
}