Retry requests support implemented for client.

This commit is contained in:
Musab Gültekin
2019-07-04 13:36:10 +03:00
parent da03567fae
commit 9adff75509
10 changed files with 108 additions and 34 deletions

View File

@ -26,6 +26,8 @@ type Request struct {
// Set this true to cancel requests. Should be used on middlewares.
Cancelled bool
retryCounter int
}
// Cancel request