Also enhanced the lhttpc_lib:parse_url/1 to parse
credentials as specified in RFC1738 - before if user
credentials were specified, this function would consider
that what follows the first : is the port and not a
If an URL targets an IPv6 host, lhttpc will now pass the
inet6 option to the socket automatically.
This also fixes 2 bugs:
1) in lhttpc_lib:parse_url/1 when the host component is an IPv6
address literal - the parser thinks that what follows the
first : is a port number;
2) for IPv6 address literals, the Host header must surround those
literals in square brackets (RFC2732)
This change allows different clients to use different connection
pools (lhttpc_manager instances). This is useful when we have
several different applications or process groups which are
independent and shouldn't share the same pool.
It also reduces the overhead of messaging a single centralized pool.