Restkit .20请求超时间隔 [英] Restkit .20 request timeout interval
问题描述
尝试在Restkit上设置请求超时间隔。
Trying to set a request Timeout Interval on Restkit.
这篇文章提到HTTClient,但HTTPClient似乎没有办法设置超时间隔。 在restkit 0.20.0中请求超时
This post mentions HTTClient, but HTTPClient does NOT seem to have a way to set a timeout interval. Request timeout in restkit 0.20.0
有谁知道如何设置间隔?
Does anyone know how to set an interval?
推荐答案
无法直接访问它。您应该问为什么要设置自定义超时。
There isn't direct access to it. You should really ask why you want to set a custom timeout.
如果确实需要更改它,则应该继承 RKObjectManager
并覆盖 requestWithObject:
。您的实现可以只调用super,然后编辑生成的可变请求。
If you do need to change it, you should subclass RKObjectManager
and override requestWithObject:
. Your implementation can just call super and then edit the resulting mutable request.
这篇关于Restkit .20请求超时间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!