info(ConnPid) -> Info ConnPid :: pid() Info :: #{ sock_ip => inet:ip_address(), sock_port => inet:port_number() }
gun:info - Obtain information about the connection
info(ConnPid) -> Info ConnPid :: pid() Info :: #{ sock_ip => inet:ip_address(), sock_port => inet:port_number() }
Obtain information about the connection.
The pid of the Gun connection process.
A map is returned containing various informations about the connection.
Info = gun:info(ConnPid).