{ok, _} = application:ensure_all_started(gun).
From 2b588340af501825f3ab03f2e76dba0353c98fae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= gun - Erlang HTTP client with support for HTTP/1.1, HTTP/2 and Websocket. gun - HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP Gun is an HTTP client for Erlang/OTP with support for the
+HTTP/1.1, HTTP/2 and Websocket protocols. Gun aims to provide an easy to use, asynchronous and
+always-connected client. It maintains a permanent connection
+to the server and reconnects automatically when necessary.
+gun(3) - Asynchronous HTTP client
+ The These dependencies must be started for the
+cowlib(7) - Support library for manipulating Web protocols
+
+ssl - Secure communication over sockets
+ All these applications must be started before the Name
Description
+Modules
+
+
Dependencies
gun
application uses the Erlang applications ranch
-for abstracting TCP and TLS over a common interface, and
-the ssl
application for TLS support, required for HTTPS
-and secure HTTP/2 support. In addition, Gun requires the crypto
-application (a dependency of ssl
) for Websocket.gun
-application to work. In an embedded environment
-this means that they need to be started with the
-application:start/{1,2}
function before the gun
-application is started.
+
gun
+application. To start Gun and all dependencies at once:{ok, _} = application:ensure_all_started(gun).