Click or drag to resize

DefaultRequestHandlerOnResourceResponse 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.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 73.1.130.0 (73.1.130.0)
Syntax
public virtual 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.

Implements

IRequestHandlerOnResourceResponse(IWebBrowser, IBrowser, IFrame, IRequest, IResponse)
See Also