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

Add API allowing to disable retries for a given list of HTTP methods #5634

Merged

Conversation

iliar-turdushev
Copy link
Contributor

@iliar-turdushev iliar-turdushev commented Nov 13, 2024

The PR introduces an API that allows to disable automatic retries for

  1. a given list of HTTP methods;
  2. a list of unsafe/non-readonly HTTP methods: POST, PATCH, PUT, DELETE, and CONNECT.

Here is the approved API #5248 (comment).

The documentation will be added in a separate PR dotnet/docs#43630.

Closes #5248.

Adds APIs allowing to disable automatic retries for a given list of HTTP methods
@iliar-turdushev iliar-turdushev marked this pull request as ready for review November 13, 2024 14:10
@iliar-turdushev iliar-turdushev requested a review from a team as a code owner November 13, 2024 14:10
@iliar-turdushev
Copy link
Contributor Author

@martintmk @SteveSandersonMS Please, review this PR and the PR with documentation dotnet/docs#43630. Thank you.

@iliar-turdushev
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@iliar-turdushev iliar-turdushev merged commit cfed375 into dotnet:main Nov 25, 2024
6 checks passed
@iliar-turdushev iliar-turdushev deleted the iliarturdu/resilience-retryoptions branch November 25, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix default HTTP resilience not to retry non-idempotent requests (POST, PUT, etc.)
7 participants