Вопрос

I've override public WebResourceResponse shouldInterceptRequest(WebView webView, String url) and it should return custom response on request from Ajax function. But looks like WebResourceResponse contains only response body. How can I pass HTTP response like this one :

HTTP/1.1 202
Cache-Control: no-cache
Custom-param: param

to my WebView?

Это было полезно?

Решение

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top