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`.
|
--- Used by `HTTPApiTable.fetch` and `HTTPApiTable.fetch_async`.
|
||||||
---@class HTTPRequest
|
---@class HTTPRequest: table
|
||||||
local HTTPRequest = {
|
local HTTPRequest = {
|
||||||
---@type string
|
---@type string
|
||||||
url = "http://example.org",
|
url = "http://example.org",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--- Passed to `HTTPApiTable.fetch` callback. Returned by `HTTPApiTable.fetch_async_get`.
|
--- Passed to `HTTPApiTable.fetch` callback. Returned by `HTTPApiTable.fetch_async_get`.
|
||||||
---@class HTTPRequestResult
|
---@class HTTPRequestResult: table
|
||||||
local HTTPRequestResult = {
|
local HTTPRequestResult = {
|
||||||
---@type boolean @If true, the request has finished (either succeeded, failed or timed out)
|
---@type boolean @If true, the request has finished (either succeeded, failed or timed out)
|
||||||
completed = true,
|
completed = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user