# \#mint

**URL:** https://forum.elixirforum.com/tag/mint/1484.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [ReqWebSocket - Req plugin adding WebSocket support](https://forum.elixirforum.com/t/reqwebsocket-req-plugin-adding-websocket-support/72864)

<div class="topic-metadata">

**Author:** [@jswanner](https://forum.elixirforum.com/u/jswanner)\
**Replies:** 0\
**Last updated:** [October 10, 2025, 10:30pm UTC](https://forum.elixirforum.com/t/reqwebsocket-req-plugin-adding-websocket-support/72864 "2025-10-10T22:30:43Z")

</div>

I’ve release ReqWebSocket, a Req plugin for establishing WebSocket connections, using Mint.WebSocket. resp = Req.new(connect\_options: \[protocols: \[:http1\]\], into: :self) |\> ReqWebSocket.attach() |\> Req.get!(url: "…

---

## [Does Mint/Finch support Mutual TLS](https://forum.elixirforum.com/t/does-mint-finch-support-mutual-tls/34354)

<div class="topic-metadata">

**Author:** [@ntilwalli](https://forum.elixirforum.com/u/ntilwalli)\
**Replies:** 4\
**Last updated:** [September 19, 2025, 7:56pm UTC](https://forum.elixirforum.com/t/does-mint-finch-support-mutual-tls/34354 "2025-09-19T19:56:19Z")

</div>

Hi all! I’ve started playing with Mint/Finch for HTTP requests and I love it so far but it seems mutual TLS is not yet supported. I don’t see any option to provide a “certfile”/“keyfile” pair like Hackney. Am I right …

---

## [Fresh - WebSocket client built atop the Mint](https://forum.elixirforum.com/t/fresh-websocket-client-built-atop-the-mint/58438)

<div class="topic-metadata">

**Author:** [@bunopnu](https://forum.elixirforum.com/u/bunopnu)\
**Replies:** 7\
**Last updated:** [October 5, 2024, 12:52pm UTC](https://forum.elixirforum.com/t/fresh-websocket-client-built-atop-the-mint/58438 "2024-10-05T12:52:30Z")

</div>

Hi yall, I am working on a WebSocket client for some time now, aiming to develop a WebSocket client that’s both simple and reliable. I’m eagerly looking forward to receiving your feedback! …

---

## [Connection close with TLSv1.3 after updating to Elixir 1.16 and OTP 26](https://forum.elixirforum.com/t/connection-close-with-tlsv1-3-after-updating-to-elixir-1-16-and-otp-26/62573)

<div class="topic-metadata">

**Author:** [@samfrench](https://forum.elixirforum.com/u/samfrench)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 10:09am UTC](https://forum.elixirforum.com/t/connection-close-with-tlsv1-3-after-updating-to-elixir-1-16-and-otp-26/62573 "2024-05-08T10:09:35Z")

</div>

Hello, We are experiencing an issue related to SSL and receiving a connection closed when using TLSv1.3. We are upgrading our application from erlang 24.3.4.8 with elixir 1.14.3 to erlang 26.2.2 with elixir 1.16.1. On o…

---

## [Cannot manage to get MTLS working with elixir](https://forum.elixirforum.com/t/cannot-manage-to-get-mtls-working-with-elixir/60966)

<div class="topic-metadata">

**Author:** [@jkbbwr](https://forum.elixirforum.com/u/jkbbwr)\
**Replies:** 4\
**Last updated:** [January 17, 2024, 2:43am UTC](https://forum.elixirforum.com/t/cannot-manage-to-get-mtls-working-with-elixir/60966 "2024-01-17T02:43:27Z")

</div>

I am able to do MTLS connections to a given service using curl and httpie. That works fine. An example of a working httpie command http post --cert=./cert.pem --cert-key=./cert.key \<url\> The key is passphrase protected…

---

## [Heavy async HTTP outbound and %Mint.TransportError{}](https://forum.elixirforum.com/t/heavy-async-http-outbound-and-mint-transporterror/59723)

<div class="topic-metadata">

**Author:** [@mhs](https://forum.elixirforum.com/u/mhs)\
**Replies:** 7\
**Last updated:** [November 18, 2023, 8:54pm UTC](https://forum.elixirforum.com/t/heavy-async-http-outbound-and-mint-transporterror/59723 "2023-11-18T20:54:18Z")

</div>

Howdy! I’m trying to do a ton of concurrent outbound HTTP efficiently. I’m doing this: task = fn url -\> Req.new( url: url, finch: MyFinch, max\_redirects: 2, retry: false )…

---

## [Dialyzer error - trying to handle :error responses with multiple values in the error tuple](https://forum.elixirforum.com/t/dialyzer-error-trying-to-handle-error-responses-with-multiple-values-in-the-error-tuple/58963)

<div class="topic-metadata">

**Author:** [@OmegaNalphA](https://forum.elixirforum.com/u/OmegaNalphA)\
**Replies:** 5\
**Last updated:** [October 17, 2023, 8:31am UTC](https://forum.elixirforum.com/t/dialyzer-error-trying-to-handle-error-responses-with-multiple-values-in-the-error-tuple/58963 "2023-10-17T08:31:05Z")

</div>

I’m having an issue getting my Dialyzer to agree with my output, and can’t seem to figure it out. Essentially, the response is {:error, %Mint.HTTP2{}, %Mint.HTTPError{}} instead of just {:error, \_} and I can’t get the sp…

---

## [Mint.WebSocket - (unofficial) WebSocket support for Mint 🌱](https://forum.elixirforum.com/t/mint-websocket-unofficial-websocket-support-for-mint/40773)

<div class="topic-metadata">

**Author:** [@the-mikedavis](https://forum.elixirforum.com/u/the-mikedavis)\
**Replies:** 10\
**Last updated:** [September 17, 2023, 11:36am UTC](https://forum.elixirforum.com/t/mint-websocket-unofficial-websocket-support-for-mint/40773 "2023-09-17T11:36:48Z")

</div>

Mint.WebSocket (github) (hex) is a library built on the awesome Mint (github) (hex) functional HTTP client. Mint.WebSocket extends Mint’s process-less architecture with a handful of functions for upgrading connections t…

---

## [Econnrefused with Mint](https://forum.elixirforum.com/t/econnrefused-with-mint/58217)

<div class="topic-metadata">

**Author:** [@tcoopman](https://forum.elixirforum.com/u/tcoopman)\
**Replies:** 9\
**Last updated:** [September 11, 2023, 5:42pm UTC](https://forum.elixirforum.com/t/econnrefused-with-mint/58217 "2023-09-11T17:42:16Z")

</div>

I’m getting an %Mint.TransportError{reason: :econnrefused} for a request like this: ➜ curl -v http://localhost:8888 \* processing: http://localhost:8888 \* Trying \[::1\]:8888... \* Connected to localhost (::1) port 8888 \> …

---

## [Grpc and phoenix - Mismatch mint version](https://forum.elixirforum.com/t/grpc-and-phoenix-mismatch-mint-version/57644)

<div class="topic-metadata">

**Author:** [@matinger](https://forum.elixirforum.com/u/matinger)\
**Replies:** 2\
**Last updated:** [August 15, 2023, 11:59am UTC](https://forum.elixirforum.com/t/grpc-and-phoenix-mismatch-mint-version/57644 "2023-08-15T11:59:54Z")

</div>

Hi! I have a grpc microservice server in rust. And i want to add the grpc client in a phoenix app. If i tried to add grpc (GitHub - elixir-grpc/grpc: An Elixir implementation of gRPC · GitHub) as a deps in mix, i have a…

---

## [Spear - a sharp EventStoreDB 20+ gRPC client backed by Mint](https://forum.elixirforum.com/t/spear-a-sharp-eventstoredb-20-grpc-client-backed-by-mint/39384)

<div class="topic-metadata">

**Author:** [@the-mikedavis](https://forum.elixirforum.com/u/the-mikedavis)\
**Replies:** 6\
**Last updated:** [October 24, 2022, 5:57pm UTC](https://forum.elixirforum.com/t/spear-a-sharp-eventstoredb-20-grpc-client-backed-by-mint/39384 "2022-10-24T17:57:45Z")

</div>

EventStoreDB is an append-only stream database designed for Event Sourcing. EventStoreDB champions immutable data streams and real-time subscriptions, making it easy to build reactive eventually consistent systems with b…

---

## [Encoding multipart/form-data HTTP body](https://forum.elixirforum.com/t/encoding-multipart-form-data-http-body/23443)

<div class="topic-metadata">

**Author:** [@hubertlepicki](https://forum.elixirforum.com/u/hubertlepicki)\
**Replies:** 35\
**Last updated:** [September 4, 2022, 10:18pm UTC](https://forum.elixirforum.com/t/encoding-multipart-form-data-http-body/23443 "2022-09-04T22:18:43Z")

</div>

Does anyone here know of an Elixir library which would help me assemble bodies of HTTP requests with “multipart/form-data” Content-type? This would be the reverse of plug/lib/plug/parsers/multipart.ex at v1.8.2 · elixir…

---

## [Mutual TLS authentication](https://forum.elixirforum.com/t/mutual-tls-authentication/36133)

<div class="topic-metadata">

**Author:** [@ngscheurich](https://forum.elixirforum.com/u/ngscheurich)\
**Replies:** 3\
**Last updated:** [May 29, 2021, 1:42am UTC](https://forum.elixirforum.com/t/mutual-tls-authentication/36133 "2021-05-29T01:42:07Z")

</div>

Anyone here have experience with getting mutual TLS authentication working with an Elixir HTTP client?I have a CA file, certificate, and private key that work in a few other contexts with the request am trying to make: …

---

## [Get SSL expiry date from an http request using Mint / Finch / Mojito](https://forum.elixirforum.com/t/get-ssl-expiry-date-from-an-http-request-using-mint-finch-mojito/35055)

<div class="topic-metadata">

**Author:** [@nicksanders11](https://forum.elixirforum.com/u/nicksanders11)\
**Replies:** 3\
**Last updated:** [October 22, 2020, 8:12am UTC](https://forum.elixirforum.com/t/get-ssl-expiry-date-from-an-http-request-using-mint-finch-mojito/35055 "2020-10-22T08:12:28Z")

</div>

Hi, Does anyone know how to access the SSL certificate to get the expiry date from an http request using Mint / Finch / Mojito

---

## [Had anyone do a http request in Elixir (mint) for GOIP?](https://forum.elixirforum.com/t/had-anyone-do-a-http-request-in-elixir-mint-for-goip/33716)

<div class="topic-metadata">

**Author:** [@johnmelodyme](https://forum.elixirforum.com/u/johnmelodyme)\
**Replies:** 4\
**Last updated:** [August 13, 2020, 7:39am UTC](https://forum.elixirforum.com/t/had-anyone-do-a-http-request-in-elixir-mint-for-goip/33716 "2020-08-13T07:39:27Z")

</div>

I wrote a server-side programme for GOIP sending OTP number to SMS in Ruby I requested it easily, but how do I request it in elixir ? require "uri" require "net/http" otp\_number = rand(000000 .. 999999) puts "Plese Ent…

---

## [Mint - http library](https://forum.elixirforum.com/t/mint-http-library/31977)

<div class="topic-metadata">

**Author:** [@camcaine](https://forum.elixirforum.com/u/camcaine)\
**Replies:** 7\
**Last updated:** [June 1, 2020, 2:11am UTC](https://forum.elixirforum.com/t/mint-http-library/31977 "2020-06-01T02:11:55Z")

</div>

Just played with Mint for an hour. It’s really nice :clap: Thats it, that’s the whole post.

---

## [Building on top of Mint](https://forum.elixirforum.com/t/building-on-top-of-mint/31783)

<div class="topic-metadata">

**Author:** [@camcaine](https://forum.elixirforum.com/u/camcaine)\
**Replies:** 1\
**Last updated:** [May 24, 2020, 3:34pm UTC](https://forum.elixirforum.com/t/building-on-top-of-mint/31783 "2020-05-24T15:34:26Z")

</div>

I’d like to use Mint (HTTP) to occasionally fetch some config from a server and cache it. Does anyone have any good advice on a decent process/supervision architecture for such a feature? Given that the requests would be…

---

## [Freshness - a new pooling library on top of Mint](https://forum.elixirforum.com/t/freshness-a-new-pooling-library-on-top-of-mint/30759)

<div class="topic-metadata">

**Author:** [@bottlenecked](https://forum.elixirforum.com/u/bottlenecked)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 7:34pm UTC](https://forum.elixirforum.com/t/freshness-a-new-pooling-library-on-top-of-mint/30759 "2020-04-19T19:34:57Z")

</div>

Hi all, I’m exploring an alternative pooling library for Mint GitHub - bottlenecked/freshness: A minimal wrapper for the Elixir Mint HTTP client offering pooling functionality · GitHub. The library is obviously untested …

---

## [Understanding the request reference \`request\_ref\` in Mint](https://forum.elixirforum.com/t/understanding-the-request-reference-request-ref-in-mint/29313)

<div class="topic-metadata">

**Author:** [@thojanssens1](https://forum.elixirforum.com/u/thojanssens1)\
**Replies:** 7\
**Last updated:** [March 4, 2020, 3:58pm UTC](https://forum.elixirforum.com/t/understanding-the-request-reference-request-ref-in-mint/29313 "2020-03-04T15:58:15Z")

</div>

When calling Mint.HTTP.request/5, a request identifier request\_ref is returned. Then when streaming the responses with Mint.HTTP.stream/2, I need to wait for messages and make sure that the request reference inside the …

---

## [Super weird http issue](https://forum.elixirforum.com/t/super-weird-http-issue/29013)

<div class="topic-metadata">

**Author:** [@madasebrof](https://forum.elixirforum.com/u/madasebrof)\
**Replies:** 9\
**Last updated:** [February 11, 2020, 6:35pm UTC](https://forum.elixirforum.com/t/super-weird-http-issue/29013 "2020-02-11T18:35:36Z")

</div>

Wow, this is an odd one. I’m making an http request (post) to a server. Work fine from curl Works fine from iex Bombs out when I run from within app! I have literally never had this happen before, when the EXACT same…

---

## [ElixirConf 2019: Mint - Disrupting HTTP Clients - Andrea Leopardi](https://forum.elixirforum.com/t/elixirconf-2019-mint-disrupting-http-clients-andrea-leopardi/25217)

<div class="topic-metadata">

**Author:** [@axelson](https://forum.elixirforum.com/u/axelson)\
**Replies:** 0\
**Last updated:** [September 6, 2019, 7:03pm UTC](https://forum.elixirforum.com/t/elixirconf-2019-mint-disrupting-http-clients-andrea-leopardi/25217 "2019-09-06T19:03:07Z")

</div>

by @whatyouhide Mint is a young HTTP/1 and HTTP/2 client for Elixir that aims at disrupting the status quo of HTTP clients for Erlang and Elixir. Mint is built on the idea of having a functi…

---

## [Comment on Mint's receive block](https://forum.elixirforum.com/t/comment-on-mints-receive-block/22886)

<div class="topic-metadata">

**Author:** [@blisscs](https://forum.elixirforum.com/u/blisscs)\
**Replies:** 6\
**Last updated:** [June 4, 2019, 5:12am UTC](https://forum.elixirforum.com/t/comment-on-mints-receive-block/22886 "2019-06-04T05:12:38Z")

</div>

As an example for receiving messages return from Mint.HTTP.request/4, in the Mint manual from the official document at Mint.HTTP — Mint v1.9.0. it is written - receive do message -\> case Mint.HTTP.stream(conn, mes…
