ResourceRequestHandlerOnResourceRedirect Method |
Version 79.1.350
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: 76.1.90.0 (76.1.90.0)
Syntax protected virtual void OnResourceRedirect(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
IResponse response,
ref string newUrl
)
protected:
virtual 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
[in,out] the new URL and can be changed if desired.
See Also