ASIHTTPRequest 在失去互联网连接后恢复请求
如何处理失去互联网连接的情况?我正在使用 ASIHTTPReqeust 来下载文件,并且我想在我的互联网连接可用或不可用时进行处理,以恢复下载。谁做了这样的事?当我在下载文件时禁用 wi-fi 时,ASIHTTPReqeustDelegate 调用方法 requestFaliled:(ASIHTTPRequest *) request;启用网络后如何开始下载?
PS我异步下载文件([request startAsynchronous];)
How to handle losing of internet connection? I'm using ASIHTTPReqeust to download file, and i want to handle when my internet connection is available and not, for resuming download. Who did something like that? When i disable wi-fi while downloading file, ASIHTTPReqeustDelegate calls method requestFaliled:(ASIHTTPRequest *) request; How to start download after enabling internet?
P.S. I download files asynchronously ([request startAsynchronous];)
官方文档涵盖了这一点:
http://allseeing-i.com/ASIHTTPRequest/How -to-use#resuming_interrupted_downloads
The official documentation covers this:
http://allseeing-i.com/ASIHTTPRequest/How-to-use#resuming_interrupted_downloads