Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Resolves #10] ✨Add Sample Retrier #29

Merged
merged 8 commits into from Jul 28, 2023
Merged

Conversation

connor-ricks
Copy link
Owner

@connor-ricks connor-ricks commented Jul 28, 2023

Resolves #10

  • Improves documentation for various HTTPNetworking plugins and types.
  • Adds HTTPURLResponse? to retriers.
  • Adds convenience request modifiers for all zip plugins.
  • Removes throwing from validator to avoid confusion as it already takes a Result type.
  • Rename RetryStrategy to RetryDecision to allow the name to be used for the sample retrier.
  • Adds sample retrier for most networking use cases.

- Adds previousAttempts in preparation for basic retrier.
- Adds tests that validate previousAttempts is correctly incremented.
- Adds updates plugin handlers to all through, matching their protocol.
- Adds tests that validate throwing errors rethrows up correctly.
- Replaces unused closure parameters with underscore to reduce noise.
- Passes a response, if any, to retriers.
- Improves documentation of various HTTPNetworking types.
- Converts `HTTPMethod` to a struct for external extensibility purposes.
- Adds convenience functions to HTTPRequest for each plugin's zip.
- Adds tests to validate the convenience functions.
- Adds some mark docs.
Removes the throwing capability of validator to avoid confusion with the returned result.
@connor-ricks connor-ricks linked an issue Jul 28, 2023 that may be closed by this pull request
@connor-ricks connor-ricks merged commit 3f19d8a into main Jul 28, 2023
1 check passed
@connor-ricks connor-ricks deleted the ISSUE-10/add-basic-retrier branch July 28, 2023 03:11
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.

Investigate adding an retrier for managing basic retry logic.
1 participant