3
我已覆盖public WebResourceResponse shouldInterceptRequest(WebView webView, String url)
,它应该返回自定义响应请求Ajax
函数。但看起来像WebResourceResponse
只包含响应主体。我怎样才能通过这样的HTTP响应:如何从webViewClient.shouldInterceptRequest()返回Http错误响应?
HTTP/1.1 202
Cache-Control: no-cache
Custom-param: param
我的WebView
?