ResourceRequestHandlerOnResourceResponse Method |
Version 130.1.90
Called on the CEF IO thread when a resource response is received. To allow the resource load to proceed without modification
return false. To redirect or retry the resource load optionally modify request and return true.
Modification of the request URL will be treated as a redirect. Requests handled using the default network loader cannot be
redirected in this callback.
WARNING: Redirecting using this method is deprecated. Use OnBeforeResourceLoad or GetResourceHandler to perform redirects.
Namespace: CefSharp.HandlerAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax protected virtual bool OnResourceResponse(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
IResponse response
)
protected:
virtual bool OnResourceResponse(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
IResponse^ response
)
Parameters
- chromiumWebBrowser IWebBrowser
- The ChromiumWebBrowser control.
- browser IBrowser
- the browser object - may be null if originating from ServiceWorker or CefURLRequest.
- frame IFrame
- the frame object - may be null if originating from ServiceWorker or CefURLRequest.
- request IRequest
- the request object.
- response IResponse
- the response object - cannot be modified in this callback.
Return Value
Boolean
To allow the resource load to proceed without modification return false. To redirect or retry the resource load optionally
modify
request and return true. Modification of the request URL will be treated as a redirect. Requests
handled using the default network loader cannot be redirected in this callback.
See Also