appcues / mojito

An easy-to-use Elixir HTTP client, built on the low-level Mint library.
https://hexdocs.pm/mojito/Mojito.html
MIT License
349 stars 34 forks source link

Individual requests shouldn't spawn a process #5

Closed gamache closed 5 years ago

gamache commented 5 years ago

Currently, we launch a Mojito.ConnServer to make each individual request. This makes handling the request chunking slightly easier, but we could do it instead in a recursive function and avoid the penalty of spawning.