Parses the environment variable for the web proxy and extracts the values considering defaults like http for the protocol and 80 or 443 for the port.
The general pattern to be parsed is protocol://user:password@host:port, where everything besides the host is optional.
Special characters in the user and password need to be percent encoded.
Returns
Configuration with default values or undefined if the parsing failed.
Parses the environment variable for the web proxy and extracts the values considering defaults like http for the protocol and 80 or 443 for the port. The general pattern to be parsed is
protocol://user:password@host:port
, where everything besides the host is optional. Special characters in the user and password need to be percent encoded.Returns
Configuration with default values or
undefined
if the parsing failed.