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

Feature request: async requests #69

Closed bcardarella closed 2 years ago

bcardarella commented 4 years ago

Perhaps its just not a design goal for Mojito but it would be great if there was an async: <pid> option for the request functions. This way the request doesn't block and a future message to the pid can capture the response.

gamache commented 3 years ago

Hi @bcardarella! My apologies that I didn't see this issue until now. Adding something like an async: <pid> option to Mojito is a good idea and does not at all contradict any design goals.

hubertlepicki commented 3 years ago

Would that be related to also implementing download in chunks, so we can use Mojito to fetch large files? Or would that be a separate feature (that could be implemented in similar fashion)

ntenczar commented 2 years ago

Hi! This project is now deprecated:

We recommend that you use Finch which is also built on Mint. The creator of Finch has an excellent writeup here describing the problems with Mojito, and as a result we use Finch internally at Appcues now.