AFNetworking+RetryPolicy

If a request timed out, you usually have to call that request again by yourself. AFNetworking+RetryPolicy is an objective-c category that adds the ability to set the retry logic for requests made with AFNetworking.

Features:

  •  retryCount – How many times to try.
  •  retryInterval – Time interval between attempts in seconds.
  •  progressive – Next attempt will always take more time than the previous one. (Uses Exponentiation)
  •  fatalStatusCodes – These will trigger failure block immediately when received and ends current retry.

Posted

in

,

by

Tags:

Comments

Leave a Reply