IRequestHandlerOnResourceResponse Method |
Version 73.1.130
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:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 73.1.130.0 (73.1.130.0)
Syntax bool OnResourceResponse(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
IResponse response
)
bool OnResourceResponse(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
IResponse^ response
)
Parameters
- chromiumWebBrowser
- 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