aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-20 15:06:42 +0200
committerLoïc Hoguin <[email protected]>2018-09-20 15:09:10 +0200
commitbaf0e420917ca1cb2806f8594a6cdb4710d2793d (patch)
treec8416139c514688bab05c86be3a5380476c7ca85 /doc/src
parentea0296d1560557ce45cdfc197a0254fb15bd75f8 (diff)
downloadgun-baf0e420917ca1cb2806f8594a6cdb4710d2793d.tar.gz
gun-baf0e420917ca1cb2806f8594a6cdb4710d2793d.tar.bz2
gun-baf0e420917ca1cb2806f8594a6cdb4710d2793d.zip
Use ALPN when proxying TLS connections using CONNECT
This fixes HTTP/2 over TLS connections. The protocol destination option has been deprecated in favor of a protocols option.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/manual/gun.asciidoc2
-rw-r--r--doc/src/manual/gun.connect.asciidoc4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/manual/gun.asciidoc b/doc/src/manual/gun.asciidoc
index 29ca3ea..9f753b4 100644
--- a/doc/src/manual/gun.asciidoc
+++ b/doc/src/manual/gun.asciidoc
@@ -93,7 +93,7 @@ connect_destination() :: #{
username => iodata(),
password => iodata(),
- protocol => http | http2,
+ protocols => [http | http2],
transport => tcp | tls,
tls_opts => [ssl:connect_option()],
diff --git a/doc/src/manual/gun.connect.asciidoc b/doc/src/manual/gun.connect.asciidoc
index a1acaa5..483b24d 100644
--- a/doc/src/manual/gun.connect.asciidoc
+++ b/doc/src/manual/gun.connect.asciidoc
@@ -85,8 +85,8 @@ StreamRef = gun:connect(ConnPid, #{
{ok, http} = gun:await_up(ConnPid),
StreamRef = gun:connect(ConnPid, #{
host => "origin-server.example.org",
- port => 80,
- protocol => http2,
+ port => 443,
+ protocols => [http2],
transport => tls
}),
{response, fin, 200, _} = gun:await(ConnPid, StreamRef),