RequestContextHandlerGetResourceRequestHandler Method |
Version 130.1.90Namespace: CefSharp.HandlerAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax protected virtual IResourceRequestHandler GetResourceRequestHandler(
IBrowser browser,
IFrame frame,
IRequest request,
bool isNavigation,
bool isDownload,
string requestInitiator,
ref bool disableDefaultHandling
)
protected:
virtual IResourceRequestHandler^ GetResourceRequestHandler(
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
bool isNavigation,
bool isDownload,
String^ requestInitiator,
bool% disableDefaultHandling
)
Parameters
- browser IBrowser
- represent the source browser of the request, and may be null for requests originating from service workers.
- frame IFrame
- represent the source frame of the request, and may be null for requests originating from service workers.
- request IRequest
- represents the request contents and cannot be modified in this callback
- isNavigation Boolean
- will be true if the resource request is a navigation
- isDownload Boolean
- will be true if the resource request is a download
- requestInitiator String
- is the origin (scheme + domain) of the page that initiated the request
- disableDefaultHandling Boolean
- Set 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
IResourceRequestHandlerTo allow the resource load to proceed with default handling return null. To specify a handler for the resource return a
IResourceRequestHandler object.
See Also