开发者

What's the best way to switch between https and and http with my RKObjectManager in Restkit?

开发者 https://www.devze.com 2023-04-05 11:35 出处:网络
What\'s the best way to switch between having a http and https base url for RKObjectManager.Should I let 开发者_Python百科the shared manager be set to the http base url and then new up a whole new ins

What's the best way to switch between having a http and https base url for RKObjectManager. Should I let 开发者_Python百科the shared manager be set to the http base url and then new up a whole new instance or RKOjbectManager for https requests? Are there any pitfalls or gotchas I should be worried about?


I did just the same thing - i keep three instances of the RKObjectManager (http, https and the third one with different baseUrl to interface with some portions of legacy API) and it works like a charm.

0

精彩评论

暂无评论...
验证码 换一张
取 消