Click or drag to resize
DefaultRequestHandler Class
Version 63.0.0
Default implementation of IRequestHandler. This class provides default implementations of the methods from IRequestHandler, therefore providing a convenience base class for any custom request handler.
Inheritance Hierarchy
SystemObject
  CefSharp.HandlerDefaultRequestHandler

Namespace: CefSharp.Handler
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
public class DefaultRequestHandler : IRequestHandler

The DefaultRequestHandler type exposes the following members.

Constructors
  NameDescription
Public methodDefaultRequestHandler
Initializes a new instance of the DefaultRequestHandler class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAuthCredentials
Called when the browser needs credentials from the user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetResourceResponseFilter
Called on the CEF IO thread to optionally filter resource response content.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnBeforeBrowse
Called before browser navigation. If the navigation is allowed FrameLoadStart and FrameLoadEnd will be called. If the navigation is canceled LoadError will be called with an ErrorCode value of Aborted.
Public methodOnBeforeResourceLoad
Called before a resource request is loaded. For async processing return ContinueAsync and execute Continue(Boolean) or Cancel
Public methodOnCertificateError
Called to handle requests for URLs with an invalid SSL certificate. Return true and call Continue(Boolean) either in this method or at a later time to continue or cancel the request. If [!:CefSettings.IgnoreCertificateErrors] is set all invalid certificates will be accepted without calling this method.
Public methodOnOpenUrlFromTab
Called on the UI thread before OnBeforeBrowse in certain limited cases where navigating a new or different browser might be desirable. This includes user-initiated navigation that might open in a special way (e.g. links clicked via middle-click or ctrl + left-click) and certain types of cross-origin navigation initiated from the renderer process (e.g. navigating the top-level frame to/from a file URL).
Public methodOnPluginCrashed
Called when a plugin has crashed
Public methodOnProtocolExecution
Called on the UI thread to handle requests for URLs with an unknown protocol component. SECURITY WARNING: YOU SHOULD USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL ANALYSIS BEFORE ALLOWING OS EXECUTION.
Public methodOnQuotaRequest
Called when JavaScript requests a specific storage quota size via the webkitStorageInfo.requestQuota function. For async processing return true and execute Continue(Boolean) at a later time to grant or deny the request or Cancel to cancel.
Public methodOnRenderProcessTerminated
Called when the render process terminates unexpectedly.
Public methodOnRenderViewReady
Called on the CEF UI thread when the render view associated with browser is ready to receive/handle IPC messages in the render process.
Public methodOnResourceLoadComplete
Called on the CEF IO thread when a resource load has completed.
Public methodOnResourceRedirect
Called on the IO thread when a resource load is redirected. The Url parameter will contain the old URL and other request-related information.
Public methodOnResourceResponse
Called on the CEF IO thread when a resource response is received. To allow the resource to load normally return false. To redirect or retry the resource modify request (url, headers or post body) and return true. The response object cannot be modified in this callback.
Public methodOnSelectClientCertificate
Called when the browser needs user to select Client Certificate for authentication requests (eg. PKI authentication).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also