# \#req

**URL:** https://forum.elixirforum.com/tag/req/3424.md

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

---

## [Infusion - generate Elixir SDKs from OpenAPI specs](https://forum.elixirforum.com/t/infusion-generate-elixir-sdks-from-openapi-specs/77387)

<div class="topic-metadata">

**Author:** [@mandar1045](https://forum.elixirforum.com/u/mandar1045)\
**Replies:** 7\
**Last updated:** [November 15, 2026, 11:00pm UTC](https://forum.elixirforum.com/t/infusion-generate-elixir-sdks-from-openapi-specs/77387 "2026-11-15T23:00:09Z")

</div>

Hey everyone, I’ve been working on something for the past while and finally published it, so I wanted to share. It’s called Infusion. You give it an OpenAPI spec and it writes a full Elixir SDK for that API. Structs fo…

---

## [Preferred HTTP library: Req or HTTPoison?](https://forum.elixirforum.com/t/preferred-http-library-req-or-httpoison/71163)

<div class="topic-metadata">

**Author:** [@itzmidinesh](https://forum.elixirforum.com/u/itzmidinesh)\
**Replies:** 6\
**Last updated:** [October 28, 2026, 12:31am UTC](https://forum.elixirforum.com/t/preferred-http-library-req-or-httpoison/71163 "2026-10-28T00:31:08Z")

</div>

Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison. Req looks modern and composable, which is appealing. But, HTTPoison has been arou…

---

## [StableReq - a fork of Req with API stabilized at v0.7.4](https://forum.elixirforum.com/t/stablereq-a-fork-of-req-with-api-stabilized-at-v0-7-4/76859)

<div class="topic-metadata">

**Author:** [@Asd](https://forum.elixirforum.com/u/Asd)\
**Replies:** 1\
**Last updated:** [September 27, 2026, 5:13pm UTC](https://forum.elixirforum.com/t/stablereq-a-fork-of-req-with-api-stabilized-at-v0-7-4/76859 "2026-09-27T17:13:03Z")

</div>

StableReq Its Req, but with API stabilized at 0.7.4. What? It is a fork of Req project, but with API locked to 0.7.4. I intend to keep this project synced with the upstream as much as I can. Why? I’ve had two inciden…

---

## [Omni - a universal Elixir client for LLM APIs](https://forum.elixirforum.com/t/omni-a-universal-elixir-client-for-llm-apis/74589)

<div class="topic-metadata">

**Author:** [@aaronrussell](https://forum.elixirforum.com/u/aaronrussell)\
**Replies:** 24\
**Last updated:** [July 6, 2026, 6:24pm UTC](https://forum.elixirforum.com/t/omni-a-universal-elixir-client-for-llm-apis/74589 "2026-07-06T18:24:26Z")

</div>

This thread is the home for updates and discussion across the Omni family of packages. What started as a single library for calling LLM APIs has grown into three packages that cover the full stack of building with LLMs i…

---

## [You're probably underusing middleware for HTTP response handling](https://forum.elixirforum.com/t/youre-probably-underusing-middleware-for-http-response-handling/75409)

<div class="topic-metadata">

**Author:** [@fuelen](https://forum.elixirforum.com/u/fuelen)\
**Replies:** 0\
**Last updated:** [May 17, 2026, 9:26pm UTC](https://forum.elixirforum.com/t/youre-probably-underusing-middleware-for-http-response-handling/75409 "2026-05-17T21:26:50Z")

</div>

A note on a pattern I keep running into in Elixir API clients: status-code checks and body parsing live in code after Tesla.request, instead of inside the middleware chain itself. It looks fine from the caller’s side, b…

---

## [ReqCassette - VCR-style testing for Req with async support](https://forum.elixirforum.com/t/reqcassette-vcr-style-testing-for-req-with-async-support/72869)

<div class="topic-metadata">

**Author:** [@lostbean](https://forum.elixirforum.com/u/lostbean)\
**Replies:** 11\
**Last updated:** [April 15, 2026, 1:37am UTC](https://forum.elixirforum.com/t/reqcassette-vcr-style-testing-for-req-with-async-support/72869 "2026-04-15T01:37:21Z")

</div>

Hello Elixir community! :wave: I’m excited to announce the first release of ReqCassette, a VCR-style record-and-replay library specifically designed for Req. What is ReqCassette? ReqCassette captures HTTP responses to …

---

## [ReqLLM - Composable LLM client built on Req](https://forum.elixirforum.com/t/reqllm-composable-llm-client-built-on-req/72514)

<div class="topic-metadata">

**Author:** [@mikehostetler](https://forum.elixirforum.com/u/mikehostetler)\
**Replies:** 30\
**Last updated:** [October 28, 2025, 1:21pm UTC](https://forum.elixirforum.com/t/reqllm-composable-llm-client-built-on-req/72514 "2025-10-28T13:21:22Z")

</div>

Hey everyone! I’m excited to share ReqLLM - a new approach to LLM interactions in Elixir that I’ve been working on. After building agent systems with various LLM clients, I kept running into the same frustrations: they …

---

## [AgentObs - LLM Agent Observability for Elixir](https://forum.elixirforum.com/t/agentobs-llm-agent-observability-for-elixir/73060)

<div class="topic-metadata">

**Author:** [@lostbean](https://forum.elixirforum.com/u/lostbean)\
**Replies:** 0\
**Last updated:** [October 23, 2025, 8:04pm UTC](https://forum.elixirforum.com/t/agentobs-llm-agent-observability-for-elixir/73060 "2025-10-23T20:04:06Z")

</div>

AgentObs - LLM Agent Observability for Elixir I’m excited to share AgentObs, a new library for instrumenting LLM agentic applications in Elixir with rich observability! What is AgentObs? AgentObs provides a simple, idi…

---

## [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: "…

---

## [Aborting Req request if max size exceeded while streaming](https://forum.elixirforum.com/t/aborting-req-request-if-max-size-exceeded-while-streaming/72827)

<div class="topic-metadata">

**Author:** [@spurgus](https://forum.elixirforum.com/u/spurgus)\
**Replies:** 13\
**Last updated:** [October 9, 2025, 6:17pm UTC](https://forum.elixirforum.com/t/aborting-req-request-if-max-size-exceeded-while-streaming/72827 "2025-10-09T18:17:09Z")

</div>

Hi! I have a Downloader module that GETs files given a URL, using Req. It has a timeout option but I would like to abort the download when it exceeds a given maximum size, so I don’t have to wait until the file has been…

---

## [Safely performing external HTTP requests (avoiding SSRF)](https://forum.elixirforum.com/t/safely-performing-external-http-requests-avoiding-ssrf/72598)

<div class="topic-metadata">

**Author:** [@garrison](https://forum.elixirforum.com/u/garrison)\
**Replies:** 4\
**Last updated:** [September 22, 2025, 7:02pm UTC](https://forum.elixirforum.com/t/safely-performing-external-http-requests-avoiding-ssrf/72598 "2025-09-22T19:02:52Z")

</div>

If you want to perform arbitrary external HTTP requests you have to be very careful to avoid Server-Side Request Forgery (SSRF). Certain IPs may respond with privileged data (e.g. cloud servers often have a special metad…

---

## [ReqTestBandit - Req.Test plugin to use Bandit for server mocks](https://forum.elixirforum.com/t/reqtestbandit-req-test-plugin-to-use-bandit-for-server-mocks/72193)

<div class="topic-metadata">

**Author:** [@jswanner](https://forum.elixirforum.com/u/jswanner)\
**Replies:** 3\
**Last updated:** [August 22, 2025, 6:35am UTC](https://forum.elixirforum.com/t/reqtestbandit-req-test-plugin-to-use-bandit-for-server-mocks/72193 "2025-08-22T06:35:59Z")

</div>

I guess you can say @wojtekmach nerd sniped me into trying out backing Req.Test mocks with Bandit, so that your test Req test requests are actually going through an HTTP stack (instead of only invoking a Plug function). …

---

## [How do I use Req.Test stubs with Poolboy?\`](https://forum.elixirforum.com/t/how-do-i-use-req-test-stubs-with-poolboy/71812)

<div class="topic-metadata">

**Author:** [@eileennoonan](https://forum.elixirforum.com/u/eileennoonan)\
**Replies:** 5\
**Last updated:** [July 25, 2025, 4:42pm UTC](https://forum.elixirforum.com/t/how-do-i-use-req-test-stubs-with-poolboy/71812 "2025-07-25T16:42:20Z")

</div>

I’m making HTTP requests from inside a Poolboy pool. I’m having a hell of a time trying to use Req.Test stubs in ExUnit in an e2e workflow sort of test. Typically the error I get is: \*\* (EXIT from #PID\<0.1312.0\>) an e…

---

## [Is there a way to use Req as a WebSocket client?](https://forum.elixirforum.com/t/is-there-a-way-to-use-req-as-a-websocket-client/71797)

<div class="topic-metadata">

**Author:** [@lkuty](https://forum.elixirforum.com/u/lkuty)\
**Replies:** 3\
**Last updated:** [July 23, 2025, 12:32pm UTC](https://forum.elixirforum.com/t/is-there-a-way-to-use-req-as-a-websocket-client/71797 "2025-07-23T12:32:04Z")

</div>

Hello folks, I couldn’t find information regarding this. Maybe there is a package for Req to make WebSocket requests or since it is built on top of Finch which is itself built with Mint, there is somehow a way to use Min…

---

## [Can't access fly.io app via flycast from Elixir (but can from curl)](https://forum.elixirforum.com/t/cant-access-fly-io-app-via-flycast-from-elixir-but-can-from-curl/71710)

<div class="topic-metadata">

**Author:** [@sezaru](https://forum.elixirforum.com/u/sezaru)\
**Replies:** 1\
**Last updated:** [July 15, 2025, 10:07pm UTC](https://forum.elixirforum.com/t/cant-access-fly-io-app-via-flycast-from-elixir-but-can-from-curl/71710 "2025-07-15T22:07:46Z")

</div>

I have a app in Fly.io called skip-trace-proxy with a squid HTTP proxy running. That app is deployed with flycast meaning that I should be able to access it from other apps in the same org by calling skip-trace-proxy.fly…

---

## [HttpCookie - standards-compliant HTTP Cookie implementation for Elixir](https://forum.elixirforum.com/t/httpcookie-standards-compliant-http-cookie-implementation-for-elixir/70429)

<div class="topic-metadata">

**Author:** [@reisub](https://forum.elixirforum.com/u/reisub)\
**Replies:** 1\
**Last updated:** [April 24, 2025, 8:41am UTC](https://forum.elixirforum.com/t/httpcookie-standards-compliant-http-cookie-implementation-for-elixir/70429 "2025-04-24T08:41:32Z")

</div>

I just released version 0.8.0 of HttpCookie, a standards-compliant (client-side) HTTP Cookie implementation. It’s not a new library, but this release resolves the public suffix dependency mess so I thought it’s a good t…

---

## [ReqEmbed - oEmbed plugin for Req and LiveView component](https://forum.elixirforum.com/t/reqembed-oembed-plugin-for-req-and-liveview-component/70118)

<div class="topic-metadata">

**Author:** [@leandrocp](https://forum.elixirforum.com/u/leandrocp)\
**Replies:** 0\
**Last updated:** [March 24, 2025, 10:09pm UTC](https://forum.elixirforum.com/t/reqembed-oembed-plugin-for-req-and-liveview-component/70118 "2025-03-24T22:09:04Z")

</div>

req\_embed is a plugin for req to resolve and display oEmbed resources. Features Supports 300+ providers Supports auto discovery of embeds LiveView component (only when :phoenix\_live\_view is loaded) Usage req = Req.new…

---

## [NXDOMAIN for AAAA record with Req: no match of right hand side value: {:error, %Req.TransportError{reason: :nxdomain}}](https://forum.elixirforum.com/t/nxdomain-for-aaaa-record-with-req-no-match-of-right-hand-side-value-error-req-transporterror-reason-nxdomain/69409)

<div class="topic-metadata">

**Author:** [@waseigo](https://forum.elixirforum.com/u/waseigo)\
**Replies:** 9\
**Last updated:** [February 15, 2025, 9:36am UTC](https://forum.elixirforum.com/t/nxdomain-for-aaaa-record-with-req-no-match-of-right-hand-side-value-error-req-transporterror-reason-nxdomain/69409 "2025-02-15T09:36:23Z")

</div>

Hello, I have been working on an app that uses Req to access a REST API at an AAAA domain record. The domain record is resolvable globally, and also present in /etc/hosts. Everything had been working correctly. A week …

---

## [Making a Req request with proxy](https://forum.elixirforum.com/t/making-a-req-request-with-proxy/65771)

<div class="topic-metadata">

**Author:** [@Morzaram](https://forum.elixirforum.com/u/Morzaram)\
**Replies:** 4\
**Last updated:** [February 14, 2025, 10:01am UTC](https://forum.elixirforum.com/t/making-a-req-request-with-proxy/65771 "2025-02-14T10:01:03Z")

</div>

Hey there, I’m trying to make a Req request with the following config, but I’m struggling a bit. The curl I’m trying to make into a Req curl --proxy my.proxy.com:22225 --proxy-user user:pass -k "myurl.com" Req.new( …

---

## [Req: how to debug Req.TransportError{reason: :closed} for proxy?](https://forum.elixirforum.com/t/req-how-to-debug-req-transporterror-reason-closed-for-proxy/69242)

<div class="topic-metadata">

**Author:** [@ndan](https://forum.elixirforum.com/u/ndan)\
**Replies:** 5\
**Last updated:** [February 6, 2025, 1:03am UTC](https://forum.elixirforum.com/t/req-how-to-debug-req-transporterror-reason-closed-for-proxy/69242 "2025-02-06T01:03:44Z")

</div>

I’m trying to understand why this code works for one provider but not for another \[ url: "https://ip.smartproxy.com/json", connect\_options: \[ proxy: {:http, "dc.smartproxy.com", 10001, \[\]}, transport\_opts: \[…

---

## [API authorisation using OAUTH ](https://forum.elixirforum.com/t/api-authorisation-using-oauth/64037)

<div class="topic-metadata">

**Author:** [@ghannam80](https://forum.elixirforum.com/u/ghannam80)\
**Replies:** 3\
**Last updated:** [January 28, 2025, 10:35am UTC](https://forum.elixirforum.com/t/api-authorisation-using-oauth/64037 "2025-01-28T10:35:56Z")

</div>

Hello, I am trying to learn Elixir through building a remittance aggregator starting with consuming third party API services like MasterCard. I tested regaular public API services with Elixir Req and livebook and it is…

---

## [Kubegen - Generate resource based Kubernetes clients](https://forum.elixirforum.com/t/kubegen-generate-resource-based-kubernetes-clients/62592)

<div class="topic-metadata">

**Author:** [@mruoss](https://forum.elixirforum.com/u/mruoss)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 9:04pm UTC](https://forum.elixirforum.com/t/kubegen-generate-resource-based-kubernetes-clients/62592 "2024-12-13T21:04:22Z")

</div>

Kubegen generates Kubernetes clients in the form of resource based client modules directly into your project. I have been co-maintaining the k8s library for some time now and while it is very dynamic and mighty, I alway…

---

## [Mutiple stubs in one test](https://forum.elixirforum.com/t/mutiple-stubs-in-one-test/68000)

<div class="topic-metadata">

**Author:** [@ijunaidfarooq](https://forum.elixirforum.com/u/ijunaidfarooq)\
**Replies:** 3\
**Last updated:** [December 10, 2024, 1:59pm UTC](https://forum.elixirforum.com/t/mutiple-stubs-in-one-test/68000 "2024-12-10T13:59:04Z")

</div>

Is it possible to stub multiple times within a test using req? I am doing Req.Test.stub(Wrapper, &Req.Test.json(&1, %{"indices" =\> %{}})) Req.Test.stub(Wrapper, &Req.Test.json(&1, %{"acknowledged" =\> true})) but it’s …

---

## [Using req through proxy server with auth](https://forum.elixirforum.com/t/using-req-through-proxy-server-with-auth/62077)

<div class="topic-metadata">

**Author:** [@Aylhafaza](https://forum.elixirforum.com/u/Aylhafaza)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 2:27pm UTC](https://forum.elixirforum.com/t/using-req-through-proxy-server-with-auth/62077 "2024-03-05T14:27:01Z")

</div>

How should I define a proxy server with authentication (user: pass) in req (it’s an organizational proxy to the outside world). The documentation directs to finch, but their documentation is not clear either. Thanks in…

---

## [Req.get redirects and special characters](https://forum.elixirforum.com/t/req-get-redirects-and-special-characters/67385)

<div class="topic-metadata">

**Author:** [@dnkbln](https://forum.elixirforum.com/u/dnkbln)\
**Replies:** 4\
**Last updated:** [November 11, 2024, 5:12pm UTC](https://forum.elixirforum.com/t/req-get-redirects-and-special-characters/67385 "2024-11-11T17:12:24Z")

</div>

I use the Req library to download a resource. I got the resource from a podcast RSS feed. enclosure\_url = "https://example.com/file 1.mp3" {:ok, resp} = Req.get(enclosure\_url) I got an error from the Req library. I add…

---

## [Only get response headers with Req?](https://forum.elixirforum.com/t/only-get-response-headers-with-req/67353)

<div class="topic-metadata">

**Author:** [@dnsbty](https://forum.elixirforum.com/u/dnsbty)\
**Replies:** 5\
**Last updated:** [November 8, 2024, 9:12pm UTC](https://forum.elixirforum.com/t/only-get-response-headers-with-req/67353 "2024-11-08T21:12:39Z")

</div>

I’m currently using Req in an application, and as I’m thinking about potential security concerns, I have two scenarios in mind where I would like to check the response headers before getting the full body. For webhooks,…

---

## [Finch unable to provide a connection](https://forum.elixirforum.com/t/finch-unable-to-provide-a-connection/67120)

<div class="topic-metadata">

**Author:** [@TimoMoss](https://forum.elixirforum.com/u/TimoMoss)\
**Replies:** 7\
**Last updated:** [October 31, 2024, 12:08pm UTC](https://forum.elixirforum.com/t/finch-unable-to-provide-a-connection/67120 "2024-10-31T12:08:30Z")

</div>

Hello, in our Phoenix API, we’re making numerous calls to external APIs like Opena Ai, with long responses that can take 2 to 15 seconds. As an HTTP client, we use Req {:req, "~\> 0.5.2"}, when the number of user request…

---

## [Limit request total timeout to just 2000ms with Req](https://forum.elixirforum.com/t/limit-request-total-timeout-to-just-2000ms-with-req/67044)

<div class="topic-metadata">

**Author:** [@CharlesO](https://forum.elixirforum.com/u/CharlesO)\
**Replies:** 5\
**Last updated:** [October 27, 2024, 4:57pm UTC](https://forum.elixirforum.com/t/limit-request-total-timeout-to-just-2000ms-with-req/67044 "2024-10-27T16:57:21Z")

</div>

How do we limit a Req.post! or Req.get! to a total timeout of just 2000ms? I have an integration that needs very timely responses. Limiting external API requests to just 2000ms would help my integration scenario. I ha…

---

## [How to stub Req in development?](https://forum.elixirforum.com/t/how-to-stub-req-in-development/66722)

<div class="topic-metadata">

**Author:** [@egze](https://forum.elixirforum.com/u/egze)\
**Replies:** 2\
**Last updated:** [October 15, 2024, 11:16am UTC](https://forum.elixirforum.com/t/how-to-stub-req-in-development/66722 "2024-10-15T11:16:40Z")

</div>

In the docs it says I can stub Req in tests with a config like this: # config/test.exs config :myapp, weather\_req\_options: \[ plug: {Req.Test, MyApp.Weather} \] What I want is - the same but for development to not make…

---

## [\*\* (ArgumentError) unknown registry: Req.Finch on a simple http request using Req library](https://forum.elixirforum.com/t/argumenterror-unknown-registry-req-finch-on-a-simple-http-request-using-req-library/64638)

<div class="topic-metadata">

**Author:** [@henriquesati](https://forum.elixirforum.com/u/henriquesati)\
**Replies:** 10\
**Last updated:** [September 27, 2024, 11:13am UTC](https://forum.elixirforum.com/t/argumenterror-unknown-registry-req-finch-on-a-simple-http-request-using-req-library/64638 "2024-09-27T11:13:27Z")

</div>

I’m doing a POST request using Req but i’m getting the error \*\* (ArgumentError) unknown registry: Req.Finch. I found the same problem on elixir reddit but I couldnt manage to understand and apply the possible solution M…

[Next page](https://forum.elixirforum.com/tag/req/3424.md?match_all_tags=true&page=1&tags%5B%5D=req)
