[英]When does shouldInterceptRequest() is called in android webview
I am new to android so I'm little confused with the shouldInterceptRequest() method in android webview. 我是android的新手,所以我对android webview中的shouldInterceptRequest()方法有点困惑。 When does this method is being called, is it after the request is being processed in the backend server or before the request is made to the backend server.
何时调用此方法,是在后端服务器中处理请求之后还是在向后端服务器发出请求之前。 A little detail will be appreciated,or any link to get the details of the matter.
一个小细节将不胜感激,或任何链接来获取此事的细节。 Thank you for the help.
感谢您的帮助。
shouldInterceptRequest()
is called before the request goes to the server. 在请求到达服务器之前,应该调用
shouldInterceptRequest()
。 I'll see if we can clarify this in the API documentation, but this integration test should serve as evidence : the server never sees the request because the test injects its own response to the request. 我将在API文档中看到是否可以澄清这一点,但是此集成测试应作为证据 :服务器永远不会看到该请求,因为该测试会对请求注入自己的响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.