Click or drag to resize

IResourceRequestHandlerGetResourceHandler Method

Version 107.1.120
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: 107.1.120.0 (107.1.120.0)
Syntax
IResourceHandler GetResourceHandler(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
The browser UI 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

Return Value

Type: 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