AFNetworking - How to setup requests to be retried in the event of a timeout?

前端 未结 4 770
攒了一身酷
攒了一身酷 2020-12-12 16:01

I have recently migrated from ASIHTTPRequest to AFNetworking, which has been great. However, the server that I am connecting with has some issues and sometimes causes my req

4条回答
  •  青春惊慌失措
    2020-12-12 16:12

    In my case, I frequently required retry functionality so I came up wit this retry policy category that will help you with that AFNetworking+RetryPolicy

    With respect to AFNetworking 3.0 it could serve well.

提交回复
热议问题