Click or drag to resize

IResourceRequestHandlerOnResourceRedirect Method

Version 84.4.10
Called on the CEF IO thread when a resource load is redirected. The request parameter will contain the old URL and other request-related information. The response parameter will contain the response that resulted in the redirect. The newUrl parameter will contain the new URL and can be changed if desired.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 84.4.10.0 (84.4.10.0)
Syntax
void OnResourceRedirect(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	ref string newUrl
)

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