Also is this page up-to-date? - <https://ktor.io/d...
# ktor
s
Also is this page up-to-date? - https://ktor.io/docs/client-engines.html#mpp-config - I'm on ktor
3.0.0-rc-1
and support all targets (including desktop, web, Android, iOS). Would be nice to just import something rather than have
expect
/
actual
. Alternatively can someone post more examples? - E.g., on WASM the
this
is undefined, so I need to do:
Copy code
actual fun httpClient(config: HttpClientConfig<*>.() -> Unit): HttpClient {
    return HttpClient(CIO) {     engine {          } }
}
j
you can add the engine dependencies in platform module in gradle. and just use
HttpClient{}
without the engine argument. So, it will pick the engine from dependencies
s
Nice! - That actually got me over big linker errors on iOS, web, and desktop - thx
🎉 1
a
Also, you can check out the official WASM sample.