diff options
Diffstat (limited to 'doc/src/guide')
-rw-r--r-- | doc/src/guide/connect.asciidoc | 8 | ||||
-rw-r--r-- | doc/src/guide/start.asciidoc | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/guide/connect.asciidoc b/doc/src/guide/connect.asciidoc index e0b09d6..f7983bc 100644 --- a/doc/src/guide/connect.asciidoc +++ b/doc/src/guide/connect.asciidoc @@ -34,9 +34,9 @@ The `gun:open/{2,3}` function must be used to open a connection. {ok, ConnPid} = gun:open("example.org", 443). If the port given is 443, Gun will attempt to connect using -SSL. The protocol will be selected automatically using the +TLS. The protocol will be selected automatically using the ALPN extension for TLS. By default Gun supports HTTP/2 -and HTTP/1.1 when connecting using SSL. +and HTTP/1.1 when connecting using TLS. For any other port, Gun will attempt to connect using TCP and will use the HTTP/1.1 protocol. @@ -47,10 +47,10 @@ options. The manual documents all available options. Options can be provided as a third argument, and take the form of a map. -.Opening an SSL connection to example.org on port 8443 +.Opening a TLS connection to example.org on port 8443 [source,erlang] -{ok, ConnPid} = gun:open("example.org", 8443, #{transport=>ssl}). +{ok, ConnPid} = gun:open("example.org", 8443, #{transport => tls}). === Waiting for the connection to be established diff --git a/doc/src/guide/start.asciidoc b/doc/src/guide/start.asciidoc index 6d93e2e..17cbe87 100644 --- a/doc/src/guide/start.asciidoc +++ b/doc/src/guide/start.asciidoc @@ -27,7 +27,7 @@ use it. [source,erlang] ---- 1> application:ensure_all_started(gun). -{ok,[ranch,crypto,cowlib,asn1,public_key,ssl,gun]} +{ok,[crypto,cowlib,asn1,public_key,ssl,gun]} ---- === Stopping |