WebResourceResponse and InterceptedRequestData are two different class definitions,  forced converting is not nice. In addition, it is more appropriate to use InterceptedRequestData in this intercepted request.