Detailed Description

Wraps around the UnityHttp.Http class so Nitro can easily perform web requests.

Static Public Member Functions

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 Private Member Functions

static void OnAjaxDone (HttpRequest request)
 The callback used to process a completed request. More...
 

Member Function Documentation

static void PowerUI.Ajax.Get ( string  url,
DynamicMethod< Nitro.Void callback 
)
inlinestatic

Performs a simple get request, calling the callback with the result.

Parameters
urlThe URL to request.
callbackThe 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
urlThe URL to request.
callbackThe callback to run when the request completes.
extraDataA 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
requestThe 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
urlThe URL to request.
postDataThe 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
urlThe URL to request.
postDataThe data to send (as a UTF8 string).
callbackThe 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
urlThe URL to request.
postDataThe data to send (as a UTF8 string).
callbackThe callback to run when the request completes.
extraDataA custom object to pass to the callback when the request completes.