diff options
author | Loïc Hoguin <[email protected]> | 2017-08-23 15:07:40 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-08-23 15:07:40 +0200 |
commit | 1f8d51dd2692fc3978080419987bbe4d49a41a90 (patch) | |
tree | a037e30b31c19b27929ac2fafc029914a9291966 /docs/en/gun/1.0/guide/connect.asciidoc | |
parent | d344725cfd7169605ddecca46b9901af9f43ff1f (diff) | |
download | ninenines.eu-1f8d51dd2692fc3978080419987bbe4d49a41a90.tar.gz ninenines.eu-1f8d51dd2692fc3978080419987bbe4d49a41a90.tar.bz2 ninenines.eu-1f8d51dd2692fc3978080419987bbe4d49a41a90.zip |
Cowboy 2.0.0-rc.2
Diffstat (limited to 'docs/en/gun/1.0/guide/connect.asciidoc')
-rw-r--r-- | docs/en/gun/1.0/guide/connect.asciidoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/en/gun/1.0/guide/connect.asciidoc b/docs/en/gun/1.0/guide/connect.asciidoc index c2e887c1..e0b09d6c 100644 --- a/docs/en/gun/1.0/guide/connect.asciidoc +++ b/docs/en/gun/1.0/guide/connect.asciidoc @@ -5,10 +5,10 @@ a connection using the Gun client. === Gun connections -Gun is designed with the SPDY and Websocket protocols in mind. +Gun is designed with the HTTP/2 and Websocket protocols in mind. They are built for long-running connections that allow concurrent exchange of data, either in the form of request/responses for -SPDY or in the form of messages for Websocket. +HTTP/2 or in the form of messages for Websocket. A Gun connection is an Erlang process that manages a socket to a remote endpoint. This Gun connection is owned by a user @@ -35,8 +35,8 @@ The `gun:open/{2,3}` function must be used to open a connection. If the port given is 443, Gun will attempt to connect using SSL. The protocol will be selected automatically using the -NPN extension for TLS. By default Gun supports SPDY/3.1, -SPDY/3 and HTTP/1.1 when connecting using SSL. +ALPN extension for TLS. By default Gun supports HTTP/2 +and HTTP/1.1 when connecting using SSL. For any other port, Gun will attempt to connect using TCP and will use the HTTP/1.1 protocol. |