Skip to content

Conversation

@Marcodeg
Copy link

Summary:

This PR introduces HTTPAltTaskValidator, a powerful HTTP validator designed to execute an alternate task (e.g., silent re-authentication) using the .afterTask retry strategy before reattempting the original request.

Key Features:

  • .afterTask Strategy: Utilizes .afterTask to ensure the alternate task completes before retrying the request.
  • Configurable Triggers: Activated on specified HTTP status codes (default: 401, 403).
  • Error Handling: Allows a custom error catcher for alternate task failures.
  • Retry Control: Supports retry delays and limits on alternate task attempts.

@malcommac malcommac self-requested a review January 15, 2025 09:35
@malcommac malcommac self-assigned this Jan 15, 2025
@malcommac malcommac added this to the 1.9.0 milestone Jan 15, 2025
@malcommac malcommac merged commit 09b0ee2 into immobiliare:main Jan 15, 2025
0 of 2 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.

2 participants