Is there any HTTP request kotlin standard library which is wrapped with kotlin.jvm why I am asking this is most of online compilers like repl, sololearn, play kotlin have no gradle support which wont let me use libs like okhtpp..
z
Zach Klippenstein (he/him) [MOD]
11/12/2020, 6:40 PM
Nothing in the standard library. The closest thing to a standard library would be ktor, but that’s still a separate dependency so won’t be usable from something like play.kotlinlang.org
a
Ananiya
11/12/2020, 7:04 PM
So it sounds like there is no way to call api from none gradle compiler, 🤔 even with java standard lib from kotlin.jvm
p
pavi2410
11/13/2020, 4:09 PM
You can use Java HttpURLConnection API (play.kotlinlang.org disallows Socket permission)