Class: Request

Request Class

Namespace

ITHit.WebDAV.Client

Members

Progress info object, auto updated on `OnProgress` event.

Methods

Abort()

Abort
Cancels asynchronous request. The Finish event and the callback function will be called immediately after this method call.

AddListener(sEventName, fCallback, oContext)

AddListener
Name Type Description
sEventName string
fCallback function
oContext object optional

RemoveListener(sEventName, fCallback, oContext)

RemoveListener
Name Type Description
sEventName string
fCallback function
oContext object optional

Events

OnError

OnError
Error event trigger when one of request operations have error. Notice: This event trigger before async method callback.
Properties:
Name Type Description
Error Error | ITHit.WebDAV.Client.Exceptions.WebDavException Error object
Request ITHit.WebDAV.Client.Request Current request

OnFinish

OnFinish
Finish event trigger once when all operations in requests is complete. Notice: This event trigger before async method callback.
Properties:
Name Type Description
Request ITHit.WebDAV.Client.Request Current request

OnProgress

OnProgress
Progress event trigger on update information about request progress. See ITHit.WebDAV.Client.RequestProgress for more information.
Properties:
Name Type Description
Progress ITHit.WebDAV.Client.RequestProgress Progress info instance
Request ITHit.WebDAV.Client.Request Current request
Examples