HTTP client for KotlinJS


#1

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


#2

XMLHttpRequest?


#3

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:


#4

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


#5

@barteks95, probably https://github.com/kittinunf/Fuel will be the thing that you looked for –
proof


#6

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.


#7

try window.fetch()

also see this https://caniuse.com/#search=fetch