From 1f8d51dd2692fc3978080419987bbe4d49a41a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 23 Aug 2017 15:07:40 +0200 Subject: Cowboy 2.0.0-rc.2 --- docs/en/gun/1.0/guide/connect/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/en/gun/1.0/guide/connect/index.html') diff --git a/docs/en/gun/1.0/guide/connect/index.html b/docs/en/gun/1.0/guide/connect/index.html index e91bb7c8..50035be4 100644 --- a/docs/en/gun/1.0/guide/connect/index.html +++ b/docs/en/gun/1.0/guide/connect/index.html @@ -72,10 +72,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 process that is called the owner of the connection, and is @@ -102,8 +102,8 @@ http://www.gnu.org/software/src-highlite -->

{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 -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.

The transport and protocol used can be overriden using -- cgit v1.2.3