Click or drag to resize

ResourceHandler Methods

Version 83.4.2

The ResourceHandler type exposes the following members.

Methods
  NameDescription
Public methodDispose
Dispose of resources here
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 methodStatic memberForErrorMessage
Generates a ResourceHandler that has it's StatusCode set
Public methodStatic memberFromByteArray
Creates a IResourceHandler that represents a Byte[], uses CefStreamResourceHandler for reading the data
Public methodStatic memberFromFilePath
Gets the resource from the file path specified. Use the Cef.GetMimeType() helper method to lookup the mimeType if required. Uses CefStreamResourceHandler for reading the data
Public methodStatic memberFromStream
Gets the resource from a stream.
Public methodStatic memberFromString(String, String) Obsolete.
Gets the resource from the string.
Public methodStatic memberFromString(String, Encoding, Boolean, String)
Gets a ResourceHandler that represents a string. Without a Preamble, Cef will use BrowserSettings.DefaultEncoding to load the html.
Public methodStatic memberGetByteArray
Gets a byteArray from the given string using the provided encoding
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetMemoryStream
Gets a MemoryStream from the given string using the provided encoding
Public methodStatic memberGetMimeType Obsolete.
Gets the MIME type of the 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 methodProcessRequestAsync
Begin processing the request. If you have the data in memory you can execute the callback immediately and return true. For Async processing you would typically spawn a Task to perform processing, then return true. When the processing is complete execute callback.Continue(); In your processing Task, simply set the StatusCode, StatusText, MimeType, ResponseLength and Stream
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also