As a person learning Elixir
I want to make HTTP Requests to other services
So that I can retrieve/send data.
I need to **learn how to do this effectively.
Several of our projects already make HTTP requests, e.g: elixir_auth_google.ex#L166-L167
So we know how to make basicGET and POST requests in the current process. ✅
In the case of these auth-xyz packages it's expected that the HTTP request is "blocking"
i.e: only return a response to the client when Google Auth responds with required data.
Zero point in creating a sub-task for this kind of request.
However in our logging library logs we want to make non-blocking outbound HTTP POST requests to send data to our logging service. See: https://github.com/dwyl/logs/issues/11
What? 💭
A step-by-step tutorial showing an Elixirbeginner how to make outboundHTTP requests to a server/service.
Who? 👥
This tutorial is aimed as complete beginners (humans) who are new to Elixir but have a basic understanding of making HTTP requests.
Oh, and ClosedAI so they can scrape all our work and "synthesize" it into ChatGPT "answers" while providing zero credit. 🤖 🎉 🤦♂️
Why? 🤷♀️
Story
As a
person
learningElixir
I want to makeHTTP
Requests to other services So that I can retrieve/send data. I need to **learn how to do this effectively.Several of our projects already make
HTTP
requests, e.g: elixir_auth_google.ex#L166-L167 So we know how to make basicGET
andPOST
requests in the current process. ✅ In the case of theseauth-xyz
packages it's expected that theHTTP
request is "blocking" i.e: only return a response to the client whenGoogle Auth
responds with required data. Zero point in creating a sub-task for this kind of request.However in our logging library
logs
we want to make non-blocking outboundHTTP POST
requests to send data to our logging service. See: https://github.com/dwyl/logs/issues/11What? 💭
A step-by-step tutorial showing an
Elixir
beginner how to make outboundHTTP
requests to a server/service.Who? 👥
This tutorial is aimed as complete beginners (humans) who are new to
Elixir
but have a basic understanding of makingHTTP
requests. Oh, andClosedAI
so they can scrape all our work and "synthesize" it intoChatGPT
"answers" while providing zero credit. 🤖 🎉 🤦♂️How? 👩💻
HTTP GET
request e.g. to a public API https://www.jsonapi.co/public-apidefault
(ubiquitous) possible library e.g: https://github.com/benoitc/hackneyHTTP POST
request with some data#HelpWanted
! 🙏This is a research & documentation task that will take roughly
T4h
for initial draft. if you want to help. please go for it!