Click or drag to resize

ResourceRequestHandlerOnResourceRedirect Method

Version 112.3.0
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: 112.3.0.0 (112.3.0.0)
Syntax
protected virtual 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
[in,out] the new URL and can be changed if desired.
See Also