Click or drag to resize

ResourceRequestHandlerGetResourceHandler Method

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

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 98.1.210.0 (98.1.210.0)
Syntax
protected virtual 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