Click or drag to resize

IResourceRequestHandlerOnResourceRedirect Method

Version 130.1.90
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: 129.0.110.0 (129.0.110.0)
Syntax
void OnResourceRedirect(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	ref string newUrl
)

Parameters

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