Skip to content

feat(retry): implement retry-after header handling and configuration#150

Merged
imjuni merged 1 commit intomasterfrom
develop
Sep 15, 2025
Merged

feat(retry): implement retry-after header handling and configuration#150
imjuni merged 1 commit intomasterfrom
develop

Conversation

@imjuni
Copy link
Owner

@imjuni imjuni commented Sep 15, 2025

  • Added a new useRetryAfter option to the IFrameRetry interface to control the usage of the Retry-After header.
  • Introduced getRetryAfter utility function to parse and return the retry-after value in seconds.
  • Updated AbstractJinFrame to utilize the retry-after value during retry attempts.
  • Enhanced getRetryInterval to prioritize the retry-after value when configured.
  • Added tests for getRetryAfter and updated existing tests to cover new functionality.

@codecov
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (48e9791) to head (5b23449).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #150   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           81        82    +1     
  Lines         1577      1607   +30     
  Branches       470       482   +12     
=========================================
+ Hits          1577      1607   +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Added a new `useRetryAfter` option to the `IFrameRetry` interface to control the usage of the `Retry-After` header.
- Introduced `getRetryAfter` utility function to parse and return the retry-after value in seconds.
- Updated `AbstractJinFrame` to utilize the retry-after value during retry attempts.
- Enhanced `getRetryInterval` to prioritize the retry-after value when configured.
- Added tests for `getRetryAfter` and updated existing tests to cover new functionality.
@imjuni imjuni merged commit 5eabbeb into master Sep 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant