IRequestHandlerOnResourceRedirect Method |
Version 67.0.0
Called on the IO thread when a resource load is redirected. The
Url
parameter will contain the old URL and other request-related information.
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 67.0.0.0 (67.0.0.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 - frame
- Type: CefSharpIFrame
The frame that is being redirected. - request
- Type: CefSharpIRequest
the request object - cannot be modified in this callback - response
- Type: CefSharpIResponse
the response object - newUrl
- Type: SystemString
the new URL and can be changed if desired
See Also