What is Android's equivalent for NSURLProtocol from the iOS SDK?

后端 未结 1 1386
眼角桃花
眼角桃花 2021-01-05 05:39

I\'m developing an Android app that utilizes a third-party jar. I want to monitor and possibly modify the HTTP requests issued by that library. Under iOS, I can do that by r

相关标签:
1条回答
  • 2021-01-05 06:04

    You are unfortunately out of luck: there is no app-wide interception framework of that sort available to Android apps.

    My suggestion would be to setup a proxy that intercepts the requests and supplies your mock response.

    0 讨论(0)
提交回复
热议问题