nicokosi / hubstats

🧪 Command-line for GitHub pull request statistics
5 stars 0 forks source link

Replace clj-http with http-kit #47

Closed nicokosi closed 3 years ago

nicokosi commented 3 years ago

https://stackoverflow.com/questions/18160492/pros-and-cons-of-clojure-http-client-libraries:

If you care about dependencies, http-kit may be a better choice because it is a standalone library with no other dependencies than clojure.core. Because of that it produces smaller uberjars. For a sample HTTP GET project:

Experiment replacing clj-http with http-kit to see if an optimised GraalVM binary can be generated (with the --no-fallback mode).

http://http-kit.github.io https://github.com/http-kit/http-kit

nicokosi commented 3 years ago

A similar library replacement has already be done with hato: see commits 2edbca75a2675c4ba4764be5e32982f184eded6e and c4eef7925490ddda79c499d43240279acfa8da73.