Closed rhansen closed 3 years ago
Modules in the "Tiny" namespace should provide simple code that works for common use cases. Generally, it doesn't matter whether an HTTP request uses IPv4 or IPv6. I would encourage anyone interested in such customisation to use a more fully featured HTTP implementation instead.
I agree with Tom that this is outside the scope of HTTP::Tiny. Closing.
IO::Socket::IP has a
Family
option that can be set toAF_INET
orAF_INET6
to force A or AAAA lookups, and aDomain
option that can be set toPF_INET
orPF_INET6
to force the IP protocol. Please expose these options through the HTTP::Tiny constructor so that applications can force IPv4 or IPv6 connections.