DefaultRequestHandlerOnResourceRedirect Method |
Version 73.1.130
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.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 73.1.130.0 (73.1.130.0)
Syntax public virtual void OnResourceRedirect(
IWebBrowser browserControl,
IBrowser browser,
IFrame frame,
IRequest request,
IResponse response,
ref string newUrl
)
public:
virtual void OnResourceRedirect(
IWebBrowser^ browserControl,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
IResponse^ response,
String^% newUrl
)
Parameters
- browserControl
- 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
Implements
IRequestHandlerOnResourceRedirect(IWebBrowser, IBrowser, IFrame, IRequest, IResponse, String)See Also