Click or drag to resize
DefaultRequestHandlerOnResourceRedirect Method
Version 63.0.0
Called on the IO thread when a resource load is redirected. The Url parameter will contain the old URL and other request-related information.

Namespace: CefSharp.Handler
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
public virtual void OnResourceRedirect(
	IWebBrowser browserControl,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	ref string newUrl
)

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 - cannot be modified in this callback
response
Type: CefSharpIResponse
the response object
newUrl
Type: SystemString
the new URL and can be changed if desired

Implements

IRequestHandlerOnResourceRedirect(IWebBrowser, IBrowser, IFrame, IRequest, IResponse, String)
See Also