aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/gun.info.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/manual/gun.info.asciidoc')
-rw-r--r--doc/src/manual/gun.info.asciidoc49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/src/manual/gun.info.asciidoc b/doc/src/manual/gun.info.asciidoc
new file mode 100644
index 0000000..ca7e47a
--- /dev/null
+++ b/doc/src/manual/gun.info.asciidoc
@@ -0,0 +1,49 @@
+= gun:info(3)
+
+== Name
+
+gun:info - Obtain information about the connection
+
+== Description
+
+[source,erlang]
+----
+info(ConnPid) -> Info
+
+ConnPid :: pid()
+Info :: #{
+ sock_ip => inet:ip_address(),
+ sock_port => inet:port_number()
+}
+----
+
+Obtain information about the connection.
+
+== Arguments
+
+ConnPid::
+
+The pid of the Gun connection process.
+
+== Return value
+
+A map is returned containing various informations about
+the connection.
+
+== Changelog
+
+* *1.0*: Function introduced.
+
+== Examples
+
+.Obtain information about the connection
+[source,erlang]
+----
+Info = gun:info(ConnPid).
+----
+
+== See also
+
+link:man:gun(3)[gun(3)],
+link:man:gun:open(3)[gun:open(3)],
+link:man:gun:open_unix(3)[gun:open_unix(3)]