cohtml.Net.ResourceHandler

Class that will handle all asynchronous resource requests.

Inherits from SystemIDisposable

Inherited by cohtml.DefaultResourceHandler

Public Functions

Name
virtual voidDispose()
virtual voidOnResourceRequest(ResourceRequest request, ResourceResponse response)
Called when Cohtml needs a resource.
virtual voidOnResourceStreamRequest(ResourceRequest request, ResourceStreamResponse response)
Called when Cohtml needs a resource stream.
virtual voidOnAbortResourceRequest(uint id)
Called when a requested resource is not needed anymore.
delegate voidSwigDelegateResourceHandler_0(global.System.IntPtr request, global.System.IntPtr response, global.System.IntPtr swigId)
delegate voidSwigDelegateResourceHandler_1(global.System.IntPtr request, global.System.IntPtr response, global.System.IntPtr swigId)
delegate voidSwigDelegateResourceHandler_2(uint id, global.System.IntPtr swigId)

Protected Functions

Name
ResourceHandler()

Protected Attributes

Name
boolswigCMemOwn

Public Functions Documentation

function Dispose

virtual void Dispose()

Reimplemented by: cohtml.DefaultResourceHandler.Dispose

function OnResourceRequest

virtual void OnResourceRequest(
    ResourceRequest request,
    ResourceResponse response
)

Called when Cohtml needs a resource.

Parameters:

  • request object describing the resource requested
  • response response object for result of loading the request

Note: Can be called on any thread.

function OnResourceStreamRequest

virtual void OnResourceStreamRequest(
    ResourceRequest request,
    ResourceStreamResponse response
)

Called when Cohtml needs a resource stream.

Parameters:

  • request object describing the resource requested
  • response response object for result of loading the request

Note: Can be called on any thread.

function OnAbortResourceRequest

virtual void OnAbortResourceRequest(
    uint id
)

Called when a requested resource is not needed anymore.

Parameters:

  • id the id associated with the resource request

Reimplemented by: cohtml.DefaultResourceHandler.OnAbortResourceRequest

Note: The client is STILL REQUIRED to call IAsyncResourceResponse.Finish on the resource response object with the associated request.

function SwigDelegateResourceHandler_0

delegate void SwigDelegateResourceHandler_0(
    global.System.IntPtr request,
    global.System.IntPtr response,
    global.System.IntPtr swigId
)

function SwigDelegateResourceHandler_1

delegate void SwigDelegateResourceHandler_1(
    global.System.IntPtr request,
    global.System.IntPtr response,
    global.System.IntPtr swigId
)

function SwigDelegateResourceHandler_2

delegate void SwigDelegateResourceHandler_2(
    uint id,
    global.System.IntPtr swigId
)

Protected Functions Documentation

function ResourceHandler

ResourceHandler()

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;