【发布时间】:2014-01-09 15:06:52
【问题描述】:
我已经覆盖了public WebResourceResponse shouldInterceptRequest(WebView webView, String url),它应该根据Ajax 函数的请求返回自定义响应。但看起来 WebResourceResponse 只包含响应正文。如何传递这样的 HTTP 响应:
HTTP/1.1 202
Cache-Control: no-cache
Custom-param: param
给我的WebView?
【问题讨论】:
标签: android ajax webview http-headers webviewclient