Introducing idnx · HTTPX
01-Jul-2021 2180
Let me spare you the work: here’s the ruby toolbox link. Yes, there have been many IDN-related gems over the years. Why yet another one?While researching on how to better support IDN domain names for httpx, I asked myself, “what does cURL do?”. After a session of “look at the source”, I found out that cURL uses libidn2 in Unix environments, while it uses the winAPI IdnToAscii on Windows.After that, I searched for a ruby library that would support at least one of the above. To my surprise, I didn’t find any. In fact, I found out that most of the idn-related gems from that ruby toolbox list haven’t received much attention for years, and most of them use libidn, the predecessor of libidn2, which does not support IDNA 2008 Punycode protocol. Also, none of them supports Windows.
Introducing idnx · HTTPX #ruby #rubydeveloper #rubyonrails #Introducing #HTTPX https://rubyonrails.ba/link/introducing-idnx-httpx