2017-07-26 34 views

回答

1

你可以在你的API中支持重定向。我不確定在你的結尾有多少可能,但如果是的話,那麼在應用程序端不需要改變。

否則http重定向可以通過應用輕鬆處理,就像在iOS 1中需要添加的方法&可以將請求重定向到所需的url。在Android的 https://developer.android.com/reference/org/apache/http/client/RedirectHandler.html

https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/URLLoadingSystem/Articles/RequestChanges.html

重定向處理

相關問題