Custom Tesla middleware can be passed via :middleware option
Retry middleware still configurable via :retry
should_retry?/1 checks the status of :ok responses as well
Reduced the test retry delay opt down to 1, just to make tests faster
@wojtekmach Let me know if you liked the idea of having a :middleware option. That was the cleaner solution I could think to solve your hard coded middleware example.
Issue: #59
@wojtekmach Let me know if you liked the idea of having a
:middleware
option. That was the cleaner solution I could think to solve your hard coded middleware example.