[GitHub] Add RetryInterceptor #53
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements a retry interceptor for handling failed requests in the Papyrus library. This addition allows requests to be retried based on configurable conditions, enhancing the robustness of network communication.
RetryInterceptorclass: Adds a new class that implements theInterceptorprotocol, enabling retry logic for failed requests. This class allows configuration of retry conditions, maximum retry count, and retry delay.Providerto support retry interceptor: Modifies theProviderclass to accept an optionalRetryInterceptorinstance. This change integrates the retry mechanism into the request flow, allowing failed requests to be retried according to the specified conditions.ProviderTestswith a new test case that verifies the functionality of the retry interceptor. This test ensures that requests failing with a specified status code are retried as expected.README.mdfile with instructions on configuring and using the retry interceptor. This documentation provides users with the necessary information to leverage the new feature.For more details, open the Copilot Workspace session.