chulkilee
HTTP client libraries and wrappers
Here are the list of HTTP client libraries/wrappers, and some thoughts on HTTP client in general. I’d like to hear from others how they work with HTTP..
HTTP client libraries
- httpc — OTP 29.0.2 (inets 9.7.1) - erlang (part of OTP)
- GitHub - benoitc/hackney: simple HTTP client in Erlang · GitHub - erlang, socket pools
- GitHub - cmullaparthi/ibrowse: Erlang HTTP client · GitHub - erlang, pool/pipeline per destination
- GitHub - puzza007/katipo: HTTP2/HTTP3 client for Erlang based on libcurl and libevent · GitHub - erlang, libcurl
- GitHub - ninenines/gun: HTTP/1.1, HTTP/2, Websocket client (and more) for Erlang/OTP. · GitHub - erlang, HTTP/2, Websocket, keeping connection with supervisor
- GitHub - inaka/shotgun: For the times you need more than just a gun. · GitHub - erlang, on the top of gun, out-of-box support of Server-sent Events
HTTP Client Wrappers
- GitHub - elixir-tesla/tesla: The flexible HTTP client library for Elixir, with support for middleware and multiple adapters. · GitHub - elixir, support httpc, hackney, ibrowse
- GitHub - edgurgel/httpoison: Yet Another HTTP client for Elixir powered by hackney · GitHub - elixir, hackney
- GitHub - valpackett/httpotion: [Deprecated because ibrowse is not maintained] HTTP client for Elixir (use Tesla please) · GitHub - elixir, ibrowse
- GitHub - alexandrubagu/simplehttp: HTTP client for Elixir without dependencies · GitHub - elixir, httpc
Related links
- HTTP client libraries - need better one in standard library?
- Erlang httpc or Elixir third-party http libraries (httpoison, httppotion)?
Thoughts & Questions
- Although HTTP spec says headers are case-insensitive, http client libraries should not automatically downcase such values (especially for outgoing request) since there are applications require specific cases

- headers, form data, and query string should be a list not a map to preserve orders (both order of keys and order of values)
- For performance, what about using NIF to parse headers? For example, puma (app server in Ruby) uses C for this: puma/ext/puma_http11 at v3.12.0 · puma/puma · GitHub - such parser may be shared across client/server.
- How should HTTP libraries handle HTTP version upgrade?
- Should HTTP libraries make pure functional (zero side effect) or leverage more global states (connection pools, keeping connection, etc.)?
- For example, Tesla allows creating new client on the fly, so that it “builds” client without any configuration from “global” config; however as it may use HTTP client library (application) which maintains some state in it.
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project.
My initial shotgu...
New
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
We want to introduce a new native datatype to Erlang: native records. Although replacing all tuple records with native records is not our...
New
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #performance
- #security










First Post!
gregvaughn
In the meta-sense of the question, yeah, I’m not loving the fragmentation in http client libraries, however, it’s not a huge detriment to my day to day experience. I’d need to see some specific use cases to get behind some of your arguments about case and ordering, but it’s not a big deal because none of those things you’re advocating would work against any use case I’ve dealt with.
In the end, are you expecting someone else to write this ultra http client library, or are you trying to determine whether to write it yourself?
Most Liked
chulkilee
chulkilee
xhttp is renamed to mint
https://github.com/ericmj/mint
chulkilee
https://github.com/ericmj/xhttp
From ElixirConf 2018 keynote - see https://youtu.be/suOzNeMJXl0?t=2207
Last Post!
kodepett
I read your post on
mintand I agree with you. I’m not sure of when they will fix this issue, I urgently need this to be fixed or try another library(any recommendation - processless if possible). Thanks.