IRequestHandler.OnResourceResponse Method |
Version 57.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: 57.0.0.0 (57.0.0.0)
Syntaxbool 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: CefSharp.IWebBrowser
The ChromiumWebBrowser control - browser
- Type: CefSharp.IBrowser
the browser object - frame
- Type: CefSharp.IFrame
The frame that is being redirected. - request
- Type: CefSharp.IRequest
the request object - response
- Type: CefSharp.IResponse
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