new LuCI.XHR()
- Deprecated
- Yes
Methods
-
abort()
luci.js, line 3046 -
Ignored for backwards compatibility.
This function does nothing.
- Deprecated
- Yes
-
busy(){boolean}
luci.js, line 3035 -
Checks the running state of the request.
- Deprecated
- Yes
Returns:
Type Description boolean Returns trueif the request is still running orfalseif it already completed. -
cancel()
luci.js, line 3022 -
Cancels a running request.
This function does not actually cancel the underlying
XMLHTTPRequestrequest but it sets a flag which prevents the invocation of the callback function when the request eventually finishes or timed out.- Deprecated
- Yes
-
get(url, data, callback, timeout){Promise.<null>}
luci.js, line 2978 -
This function is a legacy wrapper around
LuCI.get().Name Type Description urlstring The URL to request
dataObject optional Additional query string data
callbackLuCI.requestCallbackFn optional Callback function to invoke on completion
timeoutnumber optional Request timeout to use
- Deprecated
- Yes
Returns:
Type Description Promise.<null> -
post(url, data, callback, timeout){Promise.<null>}
luci.js, line 3005 -
This function is a legacy wrapper around
LuCI.post().Name Type Description urlstring The URL to request
dataObject optional Additional data to append to the request body.
callbackLuCI.requestCallbackFn optional Callback function to invoke on completion
timeoutnumber optional Request timeout to use
- Deprecated
- Yes
Returns:
Type Description Promise.<null> -
send_form()
luci.js, line 3061 -
Existing for backwards compatibility.
This function simply throws an
InternalErrorwhen invoked.- Deprecated
- Yes
Throws:
-
Throws an
InternalErrorwith the messageNot implementedwhen invoked. - Type
- InternalError