Decoding JSON into Elixir Structs How To Get Struct Type In Elixir

Serving Plug: Building an Elixir HTTP server from scratch

To understand how HTTP servers work, we’ll implement a minimal example of one that can run a Plug application. We’ll learn about decoding requests and encoding responses, as well as how Plug apps interact with web servers.

https://blog.appsignal.com/2019/01/22/serving-plug-building-an-elixir-http-server.html