Click or drag to resize

ResourceRequestHandler.OnResourceRedirect Method

Version 100.0.140
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.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 100.0.140.0 (100.0.140.0)
Syntax
protected virtual void OnResourceRedirect(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	ref string newUrl
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control.
browser
Type: CefSharp.IBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest.
frame
Type: CefSharp.IFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest.
request
Type: CefSharp.IRequest
the request object - cannot be modified in this callback.
response
Type: CefSharp.IResponse
the response object - cannot be modified in this callback.
newUrl
Type: System.String
[in,out] the new URL and can be changed if desired.
See Also