Hi. I have a multiplatform Spring JVM/React Browser JS project whre I use some kind of RestClient which is my custom coroutine-based wrapper over Spring's HttpTemplate in the JVM part and wrapper over window.fetch in the JS part.
I was considering to replace the SpringTemplate with the new Java 11 HttpClient and create some common expected interface for it and extract it to a separate lightweight but multiplatform-enabled RestClient library. But maybe there is already something like that around I just cannot find it. Do you know?
d
dazza5000
11/28/2020, 11:09 PM
Ktor?
k
Kuba Petržílka
11/29/2020, 10:09 AM
Ktor isn't lightweight RestClient library which I would be able to use with any framework like spring etc..
k
kqr
11/30/2020, 8:36 AM
what is you definition of lightweight? why would you not be able to use it with spring?
k
Kuba Petržílka
12/01/2020, 6:18 PM
I don't actually have any experience with Ktor, but if it is a big framework like spring, it is usually dificult to use just parts of it without ending up with the whole framework on the classpath, but maybe ktor is more modular, I will check it out