Move all annotation files into library/ folder (for LuaLS/LLS-Addons).
This commit is contained in:
18
library/definitions/HTTPRequestResultDefinition.lua
Normal file
18
library/definitions/HTTPRequestResultDefinition.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
--- Passed to `HTTPApiTable.fetch` callback. Returned by `HTTPApiTable.fetch_async_get`.
|
||||
---@class HTTPRequestResult: table
|
||||
local HTTPRequestResult = {
|
||||
---@type boolean @If true, the request has finished (either succeeded, failed or timed out)
|
||||
completed = true,
|
||||
|
||||
---@type boolean @If true, the request was successful
|
||||
succeeded = true,
|
||||
|
||||
---@type boolean @If true, the request timed out
|
||||
timeout = false,
|
||||
|
||||
---@type number @HTTP status code
|
||||
code = 200,
|
||||
|
||||
---@type string
|
||||
data = "response",
|
||||
}
|
||||
Reference in New Issue
Block a user