postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

Please add support for Kotlin khttp

Open chamber5 opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. Kotlin khttp is nice, commonly used library for requests, so it would be perfect that Postman has also possibility to export request code to khttp

chamber5 avatar Apr 29 '20 08:04 chamber5

I want to push this issue a bit. Due the increased usage of Kotlin in the Android & JVM world, here are some pros for an upcoming contribution.

More than the half of all projects already use Kotlin as their primary programming language: Kotlin ecosystem report 2020

The superior network library OkHttp from Square is also rewritten in Kotlin: OkHttp 4.x

We at NanoGiants use OkHttp for all of our Android projects, so I hope we can get this code gen in a future postman release.

@chamber5 Please correct the title "Kotlin OkHttp"

nilsjr avatar May 21 '21 12:05 nilsjr

@nilsjr Actually I would prefer khttp as it requires much less boilerplate code than OkHttp and is much simpler to use. So if you haven't fully decided than I would strongly recommend starting from khttp and OkHttp as next step. Most of projects in Kotlin I've been working on were using khttp and in few we even switched from OkHttp to khttp;)

chamber5 avatar May 22 '21 08:05 chamber5

Nevermind. Never heard of khttp at all. Due the huge documentation, functionality & community behind OkHttp, I will open an issue for OkHttp and contribute that way.

Thank you for your input. I will look into khttp for comparsion. Whats the main benefit beside simpler usage than OkHttp?

Beside OkHttp I also opened an issue for Kotlin Ktor #489. As an Kotlin enthusiast and KMM explorer we will use Ktor more and more.

nilsjr avatar May 22 '21 15:05 nilsjr

Related #142

akshaydeo avatar Feb 06 '23 10:02 akshaydeo