The new method throws an error when it receives an invalid option, but the add_with_opts method did not. This caught me out when I accidentally passed proxy_address and proxy_port rather than proxy_host and proxy_port to it. This resulted in it attempting to treat the host of my request as the proxy and hanging until the request timed out.
The new method throws an error when it receives an invalid option, but the add_with_opts method did not. This caught me out when I accidentally passed proxy_address and proxy_port rather than proxy_host and proxy_port to it. This resulted in it attempting to treat the host of my request as the proxy and hanging until the request timed out.