Skip to content

Allow 'maxRetryAttempts' to be flexible according to response status #143

@ayyysh04

Description

@ayyysh04

Is your feature request related to a problem? Please describe.
If a programmer wants to retry 3 times in case of '400' status error and 1 time in case of '401' error ,he will not be able to do so due to restriction of current 'maxRetryAttempts' method

Describe the solution you'd like
Will be adding a 'response' as argument to 'maxRetryAttempts' method ,so that programmer can decide the retry count according to response status

Describe alternatives you've considered
Above solution will work

Additional context
[NONE]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions