{gun_tunnel_up, ConnPid, StreamRef, Protocol}
ConnPid :: pid()
StreamRef :: gun:stream_ref() | undefined
Protocol :: http | http2 | socksgun_tunnel_up - The tunnel is up
{gun_tunnel_up, ConnPid, StreamRef, Protocol}
ConnPid :: pid()
StreamRef :: gun:stream_ref() | undefined
Protocol :: http | http2 | socksThe tunnel is up.
This message informs the owner/calling process that the connection completed through the SOCKS or CONNECT proxy.
If Gun is configured to connect to another SOCKS server, then the connection is not usable yet. One or more gun_tunnel_up(3) messages will follow.
The pid of the Gun connection process.
The stream reference the tunnel is running on, or undefined
if there are no underlying stream.
The protocol selected for this connection. It can be used to determine the capabilities of the server.
2.0: Message introduced.
handle_info({gun_tunnel_up, ConnPid, _StreamRef, _Protocol}, State=#state{conn_pid=ConnPid}) -> %% Do something. {noreply, State}.