onResourceRedirect
open fun onResourceRedirect(browser: CefBrowser, frame: CefFrame, request: CefRequest, response: CefResponse, new_url: StringRef)
Called on the IO thread when a resource load is redirected. The |browser| and |frame| values represent the source of the request, and may be null for requests originating from service workers or CefURLRequest. The |request| parameter will contain the old URL and other request-related information.
Parameters
browser
The corresponding browser.
frame
The frame generating the event. Instance only valid within the scope of this method.
request
The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.
response
The response that resulted in the redirect. Cannot be modified in this callback. Instance only valid within the scope of this method.
new_url
Contains the new URL and can be changed if desired.