There has been a bit of interest in the JDK 11 HttpClient so I have built a small wrapper to make it more accessible.
Please check out hato and see what you think.
It supports both HTTP/1.1 and HTTP/2, with synchronous and asynchronous execution modes.
The main features yet to be implemented are:
- multipart requests
- custom middleware
- web socket client
I have tried to make the documentation quite comprehensive, and the API should be mostly stable leading up to 1.0.0. I am still pondering over things like how much input validation/exception handling to do to hide the java internals and would appreciate any thoughts in this area.