简体   繁体   English

何时在android webview中调用shouldInterceptRequest()

[英]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.

相关问题 Android WebView loadDataWithBaseURL shouldInterceptRequest - Android WebView loadDataWithBaseURL shouldInterceptRequest 检查 webview 的 shouldInterceptRequest 是否会被调用? - To check if webview's shouldInterceptRequest will get called or not? Android:WebView shouldInterceptRequest不在WebView中添加RequestProperties - Android: WebView shouldInterceptRequest not adding RequestProperties in the WebView Android WebView使用shouldInterceptRequest覆盖即时崩溃 - Android WebView instant crash with shouldInterceptRequest override Android webView shouldInterceptRequest - 停止加载资源 - Android webView shouldInterceptRequest - Stop Loading Resource 在Android中的ShouldInterceptRequest中的WebView中获取响应标头 - Get response headers in webview in shouldInterceptRequest in Android 在Android Webview中阻止视频-ShouldInterceptRequest()的替代方法 - Block videos in android webview - Alternative to shouldInterceptRequest() 如何将带有“重定向”代码的 WebResourceResponse 传递给 WebViewClient.shouldInterceptRequest 中的 Android WebView? - How to pass WebResourceResponse with "redirect" code to Android WebView in WebViewClient.shouldInterceptRequest? WebViewClient shouldInterceptRequest冻结WebView - WebViewClient shouldInterceptRequest Freezes the WebView 公共WebResourceResponse应该InterceptRequest(WebView视图,WebResourceRequest请求)不反应 - public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) does not react
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM