Nail Gilaziev

03/24/2018, 10:02 PM
Are there any plans in JB to provide some idiomatic Http class for common module? Now I can write my own expect class Http in common module and actual class Http in platform specific modules (android jvm / js ) by wrapping platform http implementations. But is bad, because of tons of implementations from developers over and over again. We want some approach from out of the box or from kotlinx library. For example, in dart language you can use http package both for flutter and web. So you can do http requests and Json parsing and business logic in common code, separately from flutter or web part. Interface for http the same, but under the hood platform specific implementation was used. (XmlHttpRequest for JS, etc) Thanks a lot!