HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
Erlang Makefile
Clone or download
Failed to load latest commit information.
doc/src Gun 1.1.0 Aug 6, 2018
ebin Gun 1.1.0 Aug 6, 2018
src Fix some whitespace Aug 6, 2018
test Add an SSE test for lone id: lines Aug 9, 2018
.gitignore Update and related changes Nov 16, 2016
LICENSE Update copyright years Jun 4, 2018
Makefile Gun 1.1.0 Aug 6, 2018
README.asciidoc Tweak README Nov 15, 2017 Update Aug 6, 2018
rebar.config Update Cowlib to 2.5.1 Aug 6, 2018



Gun is an Erlang HTTP client with support for HTTP/1.1, HTTP/2 and Websocket.


Gun aims to provide an easy to use client compatible with HTTP/1.1, HTTP/2 and Websocket.

Gun is always connected. It will maintain a permanent connection to the server, reopening it as soon as the server closes it, saving time for the requests that come in.

All connections are supervised automatically, allowing developers to focus on writing their code without worrying.


The project is currently sponsored by and Sameroom.

The now removed SPDY implementation was sponsored by LeoFS Cloud Storage.

Getting help