Hydrogen Framework
1.3.1
|
An internal web call used within the Hydrogen Framework. More...
Public Member Functions | |
override void | DespawnSafely () |
Fallback Despawn Function More... | |
int | Form (string URI, Dictionary< string, string > formStringData, WebPool.FormBinaryData[] formBinaryData, string cookie, System.Action< int, Hashtable, string > callback) |
Form the specified URI, formStringData, formBinaryData, cookie and callback. More... | |
int | GET (string URI, string cookie, System.Action< int, Hashtable, string > callback) |
GE the specified URI, cookie and callback. More... | |
override bool | IsInactive () |
Is the GameObject idle, and therefore can be despawned organically? More... | |
override void | OnDespawned () |
Raised when the GameObject is despawned back into it's Web Pool. More... | |
override void | OnSpawned () |
Raised when the GameObject is spawned from it's Web Pool. More... | |
int | POST (string URI, string contentType, string payload, string cookie, System.Action< int, Hashtable, string > callback) |
HTTP POST Form to URI. More... | |
An internal web call used within the Hydrogen Framework.
Currently this is broken for servers that alter their status codes based on their operation.
A bug has been filed with Unity demonstrating this: http://fogbugz.unity3d.com/default.asp?577333_a0l3gs97bj9ubdis
Definition at line 45 of file WebPoolWorker.cs.
|
virtual |
Fallback Despawn Function
Implements Hydrogen.Core.ObjectPoolItemBase.
Definition at line 59 of file WebPoolWorker.cs.
int Hydrogen.Core.WebPoolWorker.Form | ( | string | URI, |
Dictionary< string, string > | formStringData, | ||
WebPool.FormBinaryData[] | formBinaryData, | ||
string | cookie, | ||
System.Action< int, Hashtable, string > | callback | ||
) |
Form the specified URI, formStringData, formBinaryData, cookie and callback.
URI | The Target URI |
formStringData | A Dictionary<string,string> of Form Data |
formBinaryData | A custom binary dataset. Useful for uploading pictures. |
cookie | Any previous cookie data to be used for authentication. |
callback | A callback function (int hash, Hashtable headers, string payload). |
Definition at line 73 of file WebPoolWorker.cs.
int Hydrogen.Core.WebPoolWorker.GET | ( | string | URI, |
string | cookie, | ||
System.Action< int, Hashtable, string > | callback | ||
) |
GE the specified URI, cookie and callback.
URI | The Target URI |
cookie | Any previous cookie data to be used for authentication. |
callback | A callback function (int hash, Hashtable headers, string payload). |
Definition at line 89 of file WebPoolWorker.cs.
|
virtual |
Is the GameObject idle, and therefore can be despawned organically?
Implements Hydrogen.Core.ObjectPoolItemBase.
Definition at line 101 of file WebPoolWorker.cs.
|
virtual |
Raised when the GameObject is despawned back into it's Web Pool.
Implements Hydrogen.Core.ObjectPoolItemBase.
Definition at line 109 of file WebPoolWorker.cs.
|
virtual |
Raised when the GameObject is spawned from it's Web Pool.
Implements Hydrogen.Core.ObjectPoolItemBase.
Definition at line 119 of file WebPoolWorker.cs.
int Hydrogen.Core.WebPoolWorker.POST | ( | string | URI, |
string | contentType, | ||
string | payload, | ||
string | cookie, | ||
System.Action< int, Hashtable, string > | callback | ||
) |
HTTP POST Form to URI.
URI | The Target URI. |
formStringData | A Dictionary<string,string> of Form Data |
formBinaryData | A custom binary dataset. Useful for uploading pictures. |
cookie | Any previous cookie data to be used for authentication. |
callback | A callback function (int hash, Hashtable headers, string payload). |
Definition at line 134 of file WebPoolWorker.cs.