IRequestHandlerOnResourceResponse Method |
Version 51.0.0
Called on the CEF IO thread when a resource response is received.
To allow the resource to load normally return false.
To redirect or retry the resource modify request (url, headers or post body) and return true.
The response object cannot be modified in this callback.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax bool OnResourceResponse(
IWebBrowser browserControl,
IBrowser browser,
IFrame frame,
IRequest request,
IResponse response
)
bool OnResourceResponse(
IWebBrowser^ browserControl,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
IResponse^ response
)
Parameters
- browserControl
- Type: CefSharpIWebBrowser
The ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
the browser object - frame
- Type: CefSharpIFrame
The frame that is being redirected. - request
- Type: CefSharpIRequest
the request object - response
- Type: CefSharpIResponse
the response object - cannot be modified in this callback
Return Value
Type:
Boolean
To allow the resource to load normally return false.
To redirect or retry the resource modify request (url, headers or post body) and return true.
See Also