Writing Your Own Req Plugin - Jacob Swanner | ElixirConf US

Writing Your Own Req Plugin - Jacob Swanner | ElixirConf US 2025

Comments welcome! View the elixirconf tag for more ElixirConf talks!

2 Likes

Anybody having written some useful plugins for Req? I haven’t come across any use case for this yet but then again I haven’t thought much about this.

Useful is subjective, so I guess you can be the judge of that…

I’ve had to integrate with many different APIs, and so have packaged up some of the ways I’ve extended Req and released them as plugins.

  • ReqSSE for handing text/event-stream (aka Server-Sent Events) responses, this plugin will be made obsolete by Req v0.8
  • ReqClientCredentials for APIs that use OAuth 2.0 client credentials flow authentication
  • ReqWebSocket for establishing WebSocket connections, using Mint.WebSocket
1 Like