From 1f8d51dd2692fc3978080419987bbe4d49a41a90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
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.
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.
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