robust_http
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
Installation
Add this to your application's shard.yml
:
dependencies:
robust_http:
github: feifanzhou/robust_http.cr
Usage
require "robust_http"
RobustHTTP.exec(host : String, port, request : HTTP::Request, timeout : Float)
Development
TODO Write development instructions here
Contributing
- 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
Contributors
- feifanzhou Feifan Zhou - creator, maintainer