Implement HTTP Client. Closes lord-server/lord#1402
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
--- Used by `HTTPApiTable.fetch` and `HTTPApiTable.fetch_async`.
|
||||
---@class HTTPRequest
|
||||
---@class HTTPRequest: table
|
||||
local HTTPRequest = {
|
||||
---@type string
|
||||
url = "http://example.org",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--- Passed to `HTTPApiTable.fetch` callback. Returned by `HTTPApiTable.fetch_async_get`.
|
||||
---@class HTTPRequestResult
|
||||
---@class HTTPRequestResult: table
|
||||
local HTTPRequestResult = {
|
||||
---@type boolean @If true, the request has finished (either succeeded, failed or timed out)
|
||||
completed = true,
|
||||
|
||||
Reference in New Issue
Block a user