# hackney

> An HTTP client for Erlang. Simple, reliable, fast.

Source: https://talira.ai/catalog/hackney-msg5q265
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients)
- Licence: Apache-2.0[^1]
- Pricing: Free[^1]
- Free tier: yes[^1]
- Backed by: [Benoît Chesneau](https://talira.ai/orgs/benoit-chesneau.md)

hackney is an HTTP client for Erlang, used from Elixir and Gleam too through Hex. Each connection runs in its own process, so a crash cleans up after itself, and connections are pooled per host or globally. It negotiates HTTP/2 by ALPN with multiplexing and flow control, has experimental HTTP/3 over QUIC in pure Erlang, streams request and response bodies, delivers responses asynchronously as messages, and includes WebSocket and WebTransport clients and full-duplex HTTP/2 streams for gRPC-style use. It verifies TLS certificates by default against Mozilla's CA bundle, tries IPv6 first with Happy Eyeballs and decompresses gzip and deflate responses.

## Links

- GitHub: https://github.com/benoitc/hackney
- Docs: https://hackney.hexdocs.pm/

## Problems it solves

- make HTTP requests from my Erlang or Elixir application with connection pooling
- stream a large file download in Erlang without loading it all into memory
- call an HTTP/2 or gRPC-style streaming API from the BEAM
- open a WebSocket connection from an Erlang client

## Features

- HTTP/1.1 and HTTP/2 with ALPN negotiation
- experimental HTTP/3 over QUIC in pure Erlang
- one process per connection
- connection pooling per host or globally
- streaming request and response bodies
- asynchronous responses as messages
- WebSocket and WebTransport clients
- TLS certificate verification by default
- Happy Eyeballs, IPv6 first
- automatic gzip and deflate decompression

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 1.00, adoption 0.63, momentum 0.29, community 0.90, backing 0.30, extensibility 0.00.

- last commit yesterday
- 206 commits in the last 90 days
- latest release 4.12.4 yesterday
- 1.4k GitHub stars
- 179 contributors
- accepts sponsorship (Github)
- backed by Benoît Chesneau

## Alternatives

- [HTTPoison](https://talira.ai/catalog/httpoison-cgavy63p.md): Yet another HTTP client for Elixir, powered by hackney
- [Tesla](https://talira.ai/catalog/tesla-17em3bn3.md): The flexible HTTP client library for Elixir, with middleware and multiple adapters

## Sources

[^1]: https://github.com/benoitc/hackney/blob/master/LICENSE (checked 24 Nov 2026)
[^2]: https://github.com/benoitc/hackney#readme (checked 24 Nov 2026)
