Hi. I have a multiplatform Spring JVM/React Browse...
# multiplatform
k
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
Ktor?
k
Ktor isn't lightweight RestClient library which I would be able to use with any framework like spring etc..
k
what is you definition of lightweight? why would you not be able to use it with spring?
k
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