robust_http.cr

Crystal HTTP Client that automatically handles retries with exponential backoff on server error

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

  1. Fork it ( https://github.com/feifanzhou/robust_http.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

robust_http.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 8 years ago
  • September 18, 2016
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 04:19:41 GMT

Languages