new RequestApi(Options)
requestRequest-handling API
Name | Type | Description |
---|---|---|
Options |
ResponseConstructorOptions |
for the constructor |
Throws:
Methods
-
addRequest(originalOptions, callback)
request -
Add a request to this handler
Name Type Description originalOptions
AddRequestOptions options for addRequest
callback
callback Callback to run with optional error (see throws) and the id of the last request (when in batch mode)
Throws:
-
getRequest(callback)
request -
Build up a Zimbra request from the request list and supply it to the callback
Name Type Description callback
callback run with optional error (see throws) and request
Throws:
-
isBatch(){boolean}
request -
Returns wether this request is a batch request
Returns:
Type Description boolean wether the request is a batch request