HTTP client for KotlinJS


Is there any http client for kotlin which can be used for kotlinjs projects?




To make HTTP requests You can use builtin APIs, like XMLHttpRequest API or Fetch API.
Also, you can use any js libraries for that. You can find more information about how to do it here:


Ok, thanks
Ideal solution would be something that can also compile to JVM, but I guess, not yet.


@barteks95, probably will be the thing that you looked for –


Do you know how to interact with the fetch api externals you metioned?
In javascript you would just call the ‘fetch()’ method, which i don’t see in the documentation you provided.


try window.fetch()

also see this