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 void | Request (string url) |
Requests a file over the internet. More... | |
static void | Request (string url, OnHttpEvent onDone) |
Requests a file over the internet. More... | |
static void | Request (string url, OnHttpEvent onDone, object extraData) |
Requests a file over the internet. More... | |
static void | Request (string url, OnHttpEvent onDone, WWWForm form) |
Requests a file over the internet and posts form data to it. 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 void | Update () |
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.1f |
The time in seconds between updates. More... | |
|
inlinestatic |
Clears all active requests.
|
inlinestatic |
Advances all the currently active http requests.
|
inlinestatic |
|
inlinestatic |
Requests a file over the internet.
url | The url to request. |
|
inlinestatic |
Requests a file over the internet.
url | The url to request. |
onDone | A method to call with the result. |
|
inlinestatic |
Requests a file over the internet.
url | The url to request. |
onDone | A method to call with the result. |
extraData | An object which will be available in the onDone method. |
|
inlinestatic |
Requests a file over the internet and posts form data to it.
url | The url to request. |
onDone | A method to call with the result. |
form | A http form to send with the request. |
|
inlinestatic |
Sets the rate at which http requests are advanced.
fps | The rate in frames per second. |
|
inlinestatic |
Metered. Advances all the currently active http requests.
|
inlinestatic |
|
inlinestatic |
Encodes the given piece of text so it's suitable to go into a post or get string.
text | The text to encode. |
|
static |
The amount of requests that are currently active.
|
static |
Active http requests are stored in a linked list. This is the head of the list.
|
static |
Waiting http requests are stored in a linked list - added here when MaxSimultaneousRequests is exceeded. This is the head of the list.
|
static |
Active http requests are stored in a linked list. This is the tail of the list.
|
static |
Waiting http requests are stored in a linked list - added here when MaxSimultaneousRequests is exceeded. This is the tail of the list.
|
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.
|
staticprivate |
The time in seconds between updates.
|
static |
The time since the last update in seconds.