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