Detailed Description

Performs Http requests independently. Note that you must call Update to keep all the requests active.

Static Public Member Functions

static void SetRate (int fps)
 Sets the rate at which http requests are advanced. More...
 
static void Clear ()
 Clears all active requests. More...
 
static string UrlEncode (string text)
 Encodes the given piece of text so it's suitable to go into a post or get string. More...
 
static string UrlDecode (string text)
 Decodes the given piece of text from a post or get string. More...
 
static void Update (float deltaTime)
 Metered. Advances all the currently active http requests. More...
 
static void Flush ()
 Advances all the currently active http requests. More...
 
static void UpdateWaitingList ()
 
static void Queue (HttpRequest request)
 

Static Public Attributes

static float UpdateTimer
 The time since the last update in seconds. More...
 
static HttpRequest LastRequest
 Active http requests are stored in a linked list. This is the tail of the list. More...
 
static HttpRequest FirstRequest
 Active http requests are stored in a linked list. This is the head of the list. More...
 
static int CurrentActiveRequests
 The amount of requests that are currently active. More...
 
static HttpRequest LastWaitingRequest
 Waiting http requests are stored in a linked list - added here when MaxSimultaneousRequests is exceeded. This is the tail of the list. More...
 
static HttpRequest FirstWaitingRequest
 Waiting http requests are stored in a linked list - added here when MaxSimultaneousRequests is exceeded. This is the head of the list. More...
 
static int MaxSimultaneousRequests =-1
 The maximum amount of simultaneous requests that will be allowed. Exceeding this will result in the additional requests entering the waiting list. -1 (default) is no limit. More...
 

Static Private Attributes

static float TimerLimit =0.05f
 The max time in seconds between updates. More...
 

Member Function Documentation

static void PowerUI.Http.Web.Clear ( )
inlinestatic

Clears all active requests.

static void PowerUI.Http.Web.Flush ( )
inlinestatic

Advances all the currently active http requests.

static void PowerUI.Http.Web.Queue ( HttpRequest  request)
inlinestatic
static void PowerUI.Http.Web.SetRate ( int  fps)
inlinestatic

Sets the rate at which http requests are advanced.

Parameters
fpsThe rate in frames per second.
static void PowerUI.Http.Web.Update ( float  deltaTime)
inlinestatic

Metered. Advances all the currently active http requests.

static void PowerUI.Http.Web.UpdateWaitingList ( )
inlinestatic
static string PowerUI.Http.Web.UrlDecode ( string  text)
inlinestatic

Decodes the given piece of text from a post or get string.

Parameters
textThe text to decode.
Returns
The url decoded text.
static string PowerUI.Http.Web.UrlEncode ( string  text)
inlinestatic

Encodes the given piece of text so it's suitable to go into a post or get string.

Parameters
textThe text to encode.
Returns
The url encoded text.

Member Data Documentation

int PowerUI.Http.Web.CurrentActiveRequests
static

The amount of requests that are currently active.

HttpRequest PowerUI.Http.Web.FirstRequest
static

Active http requests are stored in a linked list. This is the head of the list.

HttpRequest PowerUI.Http.Web.FirstWaitingRequest
static

Waiting http requests are stored in a linked list - added here when MaxSimultaneousRequests is exceeded. This is the head of the list.

HttpRequest PowerUI.Http.Web.LastRequest
static

Active http requests are stored in a linked list. This is the tail of the list.

HttpRequest PowerUI.Http.Web.LastWaitingRequest
static

Waiting http requests are stored in a linked list - added here when MaxSimultaneousRequests is exceeded. This is the tail of the list.

int PowerUI.Http.Web.MaxSimultaneousRequests =-1
static

The maximum amount of simultaneous requests that will be allowed. Exceeding this will result in the additional requests entering the waiting list. -1 (default) is no limit.

float PowerUI.Http.Web.TimerLimit =0.05f
staticprivate

The max time in seconds between updates.

float PowerUI.Http.Web.UpdateTimer
static

The time since the last update in seconds.