- bypass_proxy(+Boolean)
- Defaults to
false
. Iftrue
, do not attempt to use any proxies to obtain the connection - nodelay(+Boolean)
- Defaults to
false
. Iftrue
, set nodelay on the resulting socket usingtcp_setopt(Socket, nodelay)
The +,+,- mode is deprecated and does not support proxies. It behaves like tcp_connect/4, but creates a stream pair (see stream_pair/3).
- Errors
proxy_error(tried(ResultList))
is raised by mode (+,-,+) if proxies are defines by proxy_for_url/3 but no proxy can establsh the connection. ResultList contains one or more terms of the formfalse(Proxy)
for a hook that simply failed orerror(Proxy, ErrorTerm)
for a hook that raised an exception.- See also
library(http/http_proxy)
defines a hook that allows to connect through HTTP proxies that support theCONNECT
method.