summaryrefslogtreecommitdiffstats
path: root/Server/Plugins
diff options
context:
space:
mode:
authorNiLSPACE <NiLSPACE@users.noreply.github.com>2016-10-17 21:19:20 +0200
committerMattes D <github@xoft.cz>2016-10-17 21:19:20 +0200
commitf8f0dc4558a0a60766e8699b1b07dbebeaf5336a (patch)
tree89a4e9095a5c50d330b53d555f0d3ac2a9e80648 /Server/Plugins
parentAPIDump: Fixed cWorld:QueueTask signature, moved to separate file. (#3400) (diff)
downloadcuberite-f8f0dc4558a0a60766e8699b1b07dbebeaf5336a.tar
cuberite-f8f0dc4558a0a60766e8699b1b07dbebeaf5336a.tar.gz
cuberite-f8f0dc4558a0a60766e8699b1b07dbebeaf5336a.tar.bz2
cuberite-f8f0dc4558a0a60766e8699b1b07dbebeaf5336a.tar.lz
cuberite-f8f0dc4558a0a60766e8699b1b07dbebeaf5336a.tar.xz
cuberite-f8f0dc4558a0a60766e8699b1b07dbebeaf5336a.tar.zst
cuberite-f8f0dc4558a0a60766e8699b1b07dbebeaf5336a.zip
Diffstat (limited to 'Server/Plugins')
-rw-r--r--Server/Plugins/APIDump/Classes/Network.lua406
1 files changed, 261 insertions, 145 deletions
diff --git a/Server/Plugins/APIDump/Classes/Network.lua b/Server/Plugins/APIDump/Classes/Network.lua
index 3c47e3c6d..574a6a351 100644
--- a/Server/Plugins/APIDump/Classes/Network.lua
+++ b/Server/Plugins/APIDump/Classes/Network.lua
@@ -671,175 +671,291 @@ g_Server = nil
{
Delete =
{
- IsStatic = true,
- Params =
{
- {
- Name = "URL",
- Type = "string",
- },
- {
- Name = "Callbacks",
- Type = "table",
- },
- {
- Name = "Headers",
- Type = "table",
- IsOptional = true,
- },
- {
- Name = "RequestBody",
- Type = "string",
- IsOptional = true,
- },
- {
- Name = "Options",
- Type = "table",
- IsOptional = true,
- },
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "table",
+ },
+ {
+ Name = "Headers",
+ Type = "table",
+ IsOptional = true,
+ },
+ {
+ Name = "RequestBody",
+ Type = "string",
+ IsOptional = true,
+ },
+ {
+ Name = "Options",
+ Type = "table",
+ IsOptional = true,
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrorMessagge",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP DELETE request. Alias for Request(\"DELETE\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
- Returns =
{
- {
- Name = "IsSuccess",
- Type = "boolean",
- },
- {
- Name = "ErrorMessagge",
- Type = "string",
- IsOptional = true,
- },
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "function",
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrorMessagge",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP DELETE request. Alias for Request(\"DELETE\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
- Notes = "Starts a HTTP DELETE request. Alias for Request(\"DELETE\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
Get =
{
- IsStatic = true,
- Params =
{
- {
- Name = "URL",
- Type = "string",
- },
- {
- Name = "Callbacks",
- Type = "table",
- },
- {
- Name = "Headers",
- Type = "table",
- IsOptional = true,
- },
- {
- Name = "RequestBody",
- Type = "string",
- IsOptional = true,
- },
- {
- Name = "Options",
- Type = "table",
- IsOptional = true,
- },
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "table",
+ },
+ {
+ Name = "Headers",
+ Type = "table",
+ IsOptional = true,
+ },
+ {
+ Name = "RequestBody",
+ Type = "string",
+ IsOptional = true,
+ },
+ {
+ Name = "Options",
+ Type = "table",
+ IsOptional = true,
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrMsg",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP GET request. Alias for Request(\"GET\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
- Returns =
{
- {
- Name = "IsSuccess",
- Type = "boolean",
- },
- {
- Name = "ErrMsg",
- Type = "string",
- IsOptional = true,
- },
- },
- Notes = "Starts a HTTP GET request. Alias for Request(\"GET\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "function",
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrMsg",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP GET request. Alias for Request(\"GET\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
+ }
},
Post =
{
- IsStatic = true,
- Params =
{
- {
- Name = "URL",
- Type = "string",
- },
- {
- Name = "Callbacks",
- Type = "table",
- },
- {
- Name = "Headers",
- Type = "table",
- IsOptional = true,
- },
- {
- Name = "RequestBody",
- Type = "string",
- IsOptional = true,
- },
- {
- Name = "Options",
- Type = "table",
- IsOptional = true,
- },
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "table",
+ },
+ {
+ Name = "Headers",
+ Type = "table",
+ IsOptional = true,
+ },
+ {
+ Name = "RequestBody",
+ Type = "string",
+ IsOptional = true,
+ },
+ {
+ Name = "Options",
+ Type = "table",
+ IsOptional = true,
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrMsg",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP POST request. Alias for Request(\"POST\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
- Returns =
{
- {
- Name = "IsSuccess",
- Type = "boolean",
- },
- {
- Name = "ErrMsg",
- Type = "string",
- IsOptional = true,
- },
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "function",
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrMsg",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP POST request. Alias for Request(\"POST\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
- Notes = "Starts a HTTP POST request. Alias for Request(\"POST\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
Put =
{
- IsStatic = true,
- Params =
{
- {
- Name = "URL",
- Type = "string",
- },
- {
- Name = "Callbacks",
- Type = "table",
- },
- {
- Name = "Headers",
- Type = "table",
- IsOptional = true,
- },
- {
- Name = "RequestBody",
- Type = "string",
- IsOptional = true,
- },
- {
- Name = "Options",
- Type = "table",
- IsOptional = true,
- },
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "table",
+ },
+ {
+ Name = "Headers",
+ Type = "table",
+ IsOptional = true,
+ },
+ {
+ Name = "RequestBody",
+ Type = "string",
+ IsOptional = true,
+ },
+ {
+ Name = "Options",
+ Type = "table",
+ IsOptional = true,
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrMsg",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP PUT request. Alias for Request(\"PUT\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
- Returns =
{
- {
- Name = "IsSuccess",
- Type = "boolean",
- },
- {
- Name = "ErrMsg",
- Type = "string",
- IsOptional = true,
- },
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "URL",
+ Type = "string",
+ },
+ {
+ Name = "Callbacks",
+ Type = "function",
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "IsSuccess",
+ Type = "boolean",
+ },
+ {
+ Name = "ErrMsg",
+ Type = "string",
+ IsOptional = true,
+ },
+ },
+ Notes = "Starts a HTTP PUT request. Alias for Request(\"PUT\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
- Notes = "Starts a HTTP PUT request. Alias for Request(\"PUT\", ...). Returns true on succes, false and error message on immediate failure (unparsable URL etc.).",
},
Request =
{