aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/gun.stream_info.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-11-12 11:46:53 +0100
committerLoïc Hoguin <[email protected]>2020-11-12 11:46:53 +0100
commit52ec0b5b9f297c8dfca9160dfd344abf08a4850c (patch)
treec252f06fd281dc9a7ac5011470667c7c547fa719 /doc/src/manual/gun.stream_info.asciidoc
parent01eb4636f7a25ccdd3099629cb0d580ee8688dcc (diff)
downloadgun-52ec0b5b9f297c8dfca9160dfd344abf08a4850c.tar.gz
gun-52ec0b5b9f297c8dfca9160dfd344abf08a4850c.tar.bz2
gun-52ec0b5b9f297c8dfca9160dfd344abf08a4850c.zip
Add more new keys to gun:info and gun:stream_info manuals
Diffstat (limited to 'doc/src/manual/gun.stream_info.asciidoc')
-rw-r--r--doc/src/manual/gun.stream_info.asciidoc22
1 files changed, 19 insertions, 3 deletions
diff --git a/doc/src/manual/gun.stream_info.asciidoc b/doc/src/manual/gun.stream_info.asciidoc
index 34817fa..26ec8e2 100644
--- a/doc/src/manual/gun.stream_info.asciidoc
+++ b/doc/src/manual/gun.stream_info.asciidoc
@@ -13,9 +13,25 @@ stream_info(ConnPid, StreamRef) -> {ok, undefined | Info} | {error, not_connecte
ConnPid :: pid()
StreamRef :: gun:stream_ref()
Info :: #{
- ref => gun:stream_ref(),
- reply_to => pid(),
- state => running | stopping
+ ref => gun:stream_ref(),
+ reply_to => pid(),
+ state => running | stopping,
+ intermediaries => [Intermediary],
+ tunnel => Tunnel
+}
+Intermediary :: #{
+ type => connect | socks5,
+ host => inet:hostname() | inet:ip_address(),
+ port => inet:port_number(),
+ transport => tcp | tls,
+ protocol => http | http2 | socks | raw
+}
+Tunnel :: #{
+ transport => tcp | tls,
+ protocol => http | http2 | socks | raw,
+ origin_scheme => binary(),
+ origin_host => inet:hostname() | inet:ip_address(),
+ origin_port => inet:port_number()
}
----