Skip to content

Added retry functionality

Choose a tag to compare

@Dilip-Parmar Dilip-Parmar released this 23 Aug 12:08
1720349
  1. Added retry functionality i.e completely based on HTTP status codes provided during NetKit initialization. Retry will work for all the requests. It is must, for retry functionality to work, that failure code for given request falls in the range of HTTP status codes provided during NetKit initialization.
  2. Retry for individual request can be disabled by passing 0 as value of maxRetry.
  3. Retry will be attempted in 1.0 second after first failure of given request and retry time is increased by 2.0 seconds on every next attempt.