Wrapper around HTTP::Client that automatically handles retries with exponential backoff. Developed and tested with Crystal 0.19.2 on OS X 10.11.4
Add this to your application's shard.yml
:
dependencies:
robust_http:
github: feifanzhou/robust_http.cr
require "robust_http"
RobustHTTP.exec(host : String, port, request : HTTP::Request, timeout : Float)
TODO: Write development instructions here
- Fork it ( https://github.com/feifanzhou/robust_http.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- feifanzhou Feifan Zhou - creator, maintainer