Click or drag to resize

ResourceRequestHandlerOnResourceResponse Method

Version 105.3.390
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.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 105.3.390.0 (105.3.390.0)
Syntax
protected virtual 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 - may be null if originating from ServiceWorker or CefURLRequest.
frame
Type: CefSharpIFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest.
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 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