Wraps around the UnityHttp.Http class so Nitro can easily perform web requests.
|
static void | Get (string url, DynamicMethod< Nitro.Void > callback) |
| Performs a simple get request, calling the callback with the result. More...
|
|
static void | Get (string url, DynamicMethod< Nitro.Void > callback, object extraData) |
| Performs a simple get request, calling the callback with the result. More...
|
|
static void | Post (string url, string postData) |
| Performs a post request, sending the given post data. More...
|
|
static void | Post (string url, string postData, DynamicMethod< Nitro.Void > callback) |
| Performs a post request, sending the given post data. More...
|
|
static void | Post (string url, string postData, DynamicMethod< Nitro.Void > callback, object extraData) |
| Performs a post request, sending the given post data. More...
|
|
static void PowerUI.Ajax.Get |
( |
string |
url, |
|
|
DynamicMethod< Nitro.Void > |
callback |
|
) |
| |
|
inlinestatic |
Performs a simple get request, calling the callback with the result.
- Parameters
-
url | The URL to request. |
callback | The callback to run when the request completes. |
static void PowerUI.Ajax.Get |
( |
string |
url, |
|
|
DynamicMethod< Nitro.Void > |
callback, |
|
|
object |
extraData |
|
) |
| |
|
inlinestatic |
Performs a simple get request, calling the callback with the result.
- Parameters
-
url | The URL to request. |
callback | The callback to run when the request completes. |
extraData | A custom object to pass to the callback when the request completes. |
static void PowerUI.Ajax.OnAjaxDone |
( |
HttpRequest |
request) | |
|
|
inlinestaticprivate |
The callback used to process a completed request.
- Parameters
-
request | The HttpRequest that has now completed. |
static void PowerUI.Ajax.Post |
( |
string |
url, |
|
|
string |
postData |
|
) |
| |
|
inlinestatic |
Performs a post request, sending the given post data.
- Parameters
-
url | The URL to request. |
postData | The data to send (as a UTF8 string). |
static void PowerUI.Ajax.Post |
( |
string |
url, |
|
|
string |
postData, |
|
|
DynamicMethod< Nitro.Void > |
callback |
|
) |
| |
|
inlinestatic |
Performs a post request, sending the given post data.
- Parameters
-
url | The URL to request. |
postData | The data to send (as a UTF8 string). |
callback | The callback to run when the request completes. |
static void PowerUI.Ajax.Post |
( |
string |
url, |
|
|
string |
postData, |
|
|
DynamicMethod< Nitro.Void > |
callback, |
|
|
object |
extraData |
|
) |
| |
|
inlinestatic |
Performs a post request, sending the given post data.
- Parameters
-
url | The URL to request. |
postData | The data to send (as a UTF8 string). |
callback | The callback to run when the request completes. |
extraData | A custom object to pass to the callback when the request completes. |