Erlang HTTP/1.1, HTTP/2 and Websocket client
open sourceISCfree
Gun is an open source Erlang HTTP client with support for HTTP/1.1, HTTP/2 and Websocket, by Loïc Hoguin of Nine Nines, who also makes Cowboy. It keeps a permanent connection to the server and reopens it as soon as the server closes it, every connection is supervised, and it can connect through any combination of SOCKS and HTTP proxies.
Problems it solves
- make HTTP/2 requests from an Erlang or Elixir application
- keep a Websocket connection open to a server from Erlang/OTP and reconnect automatically
- HTTP client in Erlang that works through a SOCKS proxy
Features
- HTTP/1.1, HTTP/2 and Websocket client
- permanent connection that reopens when the server closes it
- connections supervised automatically
- connects through any mix of SOCKS and HTTP proxies
- user guide in PDF and HTML and man pages for the function reference
Alternatives
The same job
These do what Gun does.
- hackney An HTTP client for Erlang. Simple, reliable, fast.
- ibrowse HTTP client for Erlang with connection pools and streaming
- HTTPoison Yet another HTTP client for Elixir, powered by hackney
- Mint Functional, low-level HTTP/1 and HTTP/2 client for Elixir
- Req A batteries-included HTTP client for Elixir
- Finch Performance-focused HTTP client for Elixir
