PS: I am not very familiar with Web package. Adding support for IPv6 to socket and making HttpClient recognize the addresses solves most issues. Are you aware of other classes that need my attention? Or maybe other packages?
Well, very quick review of the issue indicates quite likely only small difference - wherever there is
AF_INET
there should be
AF_INET6
for ipv6 support and the structure involved should be 'sockaddr_in6' instead of 'sockaddr_in'.