Canonicalize a bare all-numeric IPv4 authority host into four octets using
inet_aton rules so that alternate encodings cannot slip past the SSRF
guard. Accepts 1-4 parts where each part may be decimal, octal (0-prefix)
or hex (0x-prefix); a short form lets the final part absorb the remaining
low bytes (1 part = 32 bits, 2 parts = a.(24 bits), 3 parts = a.b.(16 bits)).
Returns true and fills outOct only when the whole host is such a literal;
returns false for any host that is not a pure numeric IPv4 literal (e.g. a
registered hostname), which the caller treats as "not an IP literal".
@safe pure nothrow @nogc.
Canonicalize a bare all-numeric IPv4 authority host into four octets using inet_aton rules so that alternate encodings cannot slip past the SSRF guard. Accepts 1-4 parts where each part may be decimal, octal (0-prefix) or hex (0x-prefix); a short form lets the final part absorb the remaining low bytes (1 part = 32 bits, 2 parts = a.(24 bits), 3 parts = a.b.(16 bits)). Returns true and fills outOct only when the whole host is such a literal; returns false for any host that is not a pure numeric IPv4 literal (e.g. a registered hostname), which the caller treats as "not an IP literal". @safe pure nothrow @nogc.