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
?