diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/manual/gun.asciidoc | 2 | ||||
-rw-r--r-- | doc/src/manual/gun.connect.asciidoc | 4 |
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), |