public class Http
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Http.Method
Available HTTP methods to use with the raw HTTP method
|
Constructor and Description |
---|
Http() |
Modifier and Type | Method and Description |
---|---|
static void |
asyncGet(org.bukkit.plugin.Plugin plugin,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> data) |
static void |
asyncGetCallback(org.bukkit.plugin.Plugin plugin,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> data,
ICallback callback) |
static void |
asyncPost(org.bukkit.plugin.Plugin plugin,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> data) |
static void |
asyncPostCallback(org.bukkit.plugin.Plugin plugin,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> data,
ICallback callback) |
static java.lang.String |
HTTP(java.lang.String endpoint,
Http.Method method,
java.util.Map<java.lang.String,java.lang.String> data) |
public static void asyncGet(org.bukkit.plugin.Plugin plugin, java.lang.String url, java.util.Map<java.lang.String,java.lang.String> data)
plugin
- The calling pluginurl
- The URL to calldata
- A map of parameterspublic static void asyncGetCallback(org.bukkit.plugin.Plugin plugin, java.lang.String url, java.util.Map<java.lang.String,java.lang.String> data, ICallback callback)
plugin
- The calling pluginurl
- The URL to calldata
- A map of parameterscallback
- A class implementing an ICallBack to run upon completionICallback
public static void asyncPost(org.bukkit.plugin.Plugin plugin, java.lang.String url, java.util.Map<java.lang.String,java.lang.String> data)
plugin
- The calling pluginurl
- The URL to calldata
- A map of parameterspublic static void asyncPostCallback(org.bukkit.plugin.Plugin plugin, java.lang.String url, java.util.Map<java.lang.String,java.lang.String> data, ICallback callback)
plugin
- The calling pluginurl
- The URL to calldata
- A map of parameterscallback
- A class implementing an ICallBack to run upon completionICallback
public static java.lang.String HTTP(java.lang.String endpoint, Http.Method method, java.util.Map<java.lang.String,java.lang.String> data) throws java.lang.Exception
java.lang.Exception