Click or drag to resize

DefaultRequestHandlerGetResourceRequestHandler Method

Version 81.3.100
Called on the CEF IO thread before a resource request is initiated.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 81.3.100.0 (81.3.100.0)
Syntax
public virtual IResourceRequestHandler GetResourceRequestHandler(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	bool iNavigation,
	bool isDownload,
	string requestInitiator,
	ref bool disableDefaultHandling
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
represent the source browser of the request
frame
Type: CefSharpIFrame
represent the source frame of the request
request
Type: CefSharpIRequest
represents the request contents and cannot be modified in this callback
iNavigation
Type: SystemBoolean
will be true if the resource request is a navigation
isDownload
Type: SystemBoolean
will be true if the resource request is a download
requestInitiator
Type: SystemString
is the origin (scheme + domain) of the page that initiated the request
disableDefaultHandling
Type: SystemBoolean
to true to disable default handling of the request, in which case it will need to be handled via GetResourceHandler(IWebBrowser, IBrowser, IFrame, IRequest) or it will be canceled

Return Value

Type: IResourceRequestHandler
To allow the resource load to proceed with default handling return null. To specify a handler for the resource return a IResourceRequestHandler object. If this callback returns null the same method will be called on the associated IRequestContextHandler, if any

Implements

IRequestHandlerGetResourceRequestHandler(IWebBrowser, IBrowser, IFrame, IRequest, Boolean, Boolean, String, Boolean)
See Also