gnarroway / hato

An HTTP client for Clojure, wrapping JDK 11's HttpClient
MIT License
375 stars 27 forks source link

Expose TLS protocol version setting when creating SSLContext? #66

Open claj opened 8 months ago

claj commented 8 months ago

When comparing a reference implementation of an API integration in Java for porting it to Clojure and using hato, there are some settings that cannot be set through the ->SSLContext function, namely the TLS version (defaults to "TLS" in hato, I would like to be able to set it to "TLSv1.2" in this particular case).

Would it be welcome to add an optional key named :protocol in the hato.client/->SSLContext function - and specify that is optional key means the version of the TLS-protocol the documentation, defaults to "TLS"?

gnarroway commented 8 months ago

Hi, thanks for your interest. I don't mind a PR for this. Please include a test and readme.

For completeness just noting some options:

claj commented 7 months ago

I'm still on this, but has been busy with other things. There will be a at least two weeks more until I'm done.