jgraichen / restify

Restify is a experimental, parallel and pipelined Hypermedia API client
GNU Lesser General Public License v3.0
8 stars 2 forks source link

Support HTTP 429 (Too many Requests) #45

Closed franzliedke closed 3 years ago

franzliedke commented 3 years ago

Our conversation prompted me to add this natively. Even with support for parsing the Retry-After header. πŸŽ‰

I hope you like it. 😊

codecov[bot] commented 3 years ago

Codecov Report

Merging #45 (77da5f3) into master (a609b02) will increase coverage by 0.06%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
+ Coverage   95.31%   95.38%   +0.06%     
==========================================
  Files          20       20              
  Lines         641      650       +9     
==========================================
+ Hits          611      620       +9     
  Misses         30       30              
Impacted Files Coverage Ξ”
lib/restify/error.rb 92.85% <100.00%> (+1.36%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update a609b02...77da5f3. Read the comment docs.

franzliedke commented 3 years ago

I had to switch from Date::Error to ArgumentError (apparently, the former only worked on Ruby 2.7).