Click or drag to resize

IResourceRequestHandlerGetResourceHandler Method

Version 130.1.90
Called on the CEF IO thread before a resource is loaded. To specify a handler for the resource return a IResourceHandler object

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
IResourceHandler GetResourceHandler(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request
)

Parameters

chromiumWebBrowser  IWebBrowser
The browser UI control
browser  IBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest
frame  IFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest
request  IRequest
the request object - cannot be modified in this callback

Return Value

IResourceHandler
To allow the resource to load using the default network loader return null otherwise return an instance of IResourceHandler with a valid stream
See Also