Replace requests-scala with native client
sake92 opened this issue · comments
https://openjdk.org/groups/net/httpclient/intro.html
https://www.baeldung.com/java-httpclient-post
Motivation
- one dependency less
- there is quite a few issues with it https://github.com/com-lihaoyi/requests-scala/issues?page=1&q=is%3Aissue+is%3Aopen
- doesnt support a sequence of query params, e.g. a=1&a=2
- same for headers
- doesnt have a builder, you cant extract common code easily
Dang, it doesn't support multipart forms..
https://stackoverflow.com/questions/56481475/how-to-define-multiple-parameters-for-a-post-request-using-java-11-http-client