An internal web pool system used within the Hydrogen Framework.
More...
|
void | Form (string URI, Dictionary< string, string > formStringData) |
| HTTP POST Form to URI. More...
|
|
void | Form (string URI, Dictionary< string, string > formStringData, FormBinaryData[] formBinaryData, string cookie, System.Action< int, Hashtable, string > callback) |
| HTTP POST Form to URI. More...
|
|
*< returns > Call Hashcode
</returns > *int | GET (string URI) |
| HTTP GET Request to URI More...
|
|
int | GET (string URI, System.Action< int, Hashtable, string > callback) |
| HTTP GET Request to URI More...
|
|
int | GET (string URI, string cookie, System.Action< int, Hashtable, string > callback) |
| HTTP GET Request to URI More...
|
|
void | POST (string URI, string contentType, string payload) |
| HTTP POST Request to URI. More...
|
|
void | POST (string URI, string contentType, string payload, string cookie, System.Action< int, Hashtable, string > callback) |
| HTTP POST Request to URI. More...
|
|
An internal web pool system used within the Hydrogen Framework.
Definition at line 39 of file WebPool.cs.
virtual void Hydrogen.Core.WebPool.Awake |
( |
| ) |
|
|
protectedvirtual |
Unity's Awake Event
Reimplemented in hWebPool.
Definition at line 165 of file WebPool.cs.
167 StartCoroutine (Initialize ());
void Hydrogen.Core.WebPool.Form |
( |
string |
URI, |
|
|
Dictionary< string, string > |
formStringData |
|
) |
| |
HTTP POST Form to URI.
- Parameters
-
URI | The Target URI |
formStringData | A Dictionary<string,string> of Form Data |
- Returns
- Call Hashcode
Definition at line 63 of file WebPool.cs.
65 Form (URI, formStringData, null, null, null);
void Form(string URI, Dictionary< string, string > formStringData)
HTTP POST Form to URI.
void Hydrogen.Core.WebPool.Form |
( |
string |
URI, |
|
|
Dictionary< string, string > |
formStringData, |
|
|
FormBinaryData[] |
formBinaryData, |
|
|
string |
cookie, |
|
|
System.Action< int, Hashtable, string > |
callback |
|
) |
| |
HTTP POST Form to URI.
- Parameters
-
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). |
- Returns
- Call Hashcode
Definition at line 77 of file WebPool.cs.
80 Debug.LogError (
"WebPool has not finished initializing ... " +
81 "Did you call this function without having either a WebPool or ObjectPool component " +
82 "already on a MonoBehaviour?");
85 GameObject go = _poolReference.Spawn (_poolID);
86 go.GetComponent<WebPoolWorker> ().
Form (URI, formStringData, formBinaryData, cookie, callback);
void Form(string URI, Dictionary< string, string > formStringData)
HTTP POST Form to URI.
*<returns> Call Hashcode</returns>* int Hydrogen.Core.WebPool.GET |
( |
string |
URI | ) |
|
HTTP GET Request to URI
- Parameters
-
Definition at line 94 of file WebPool.cs.
96 return GET (URI, null, null);
*< returns > Call Hashcode</returns > *int GET(string URI)
HTTP GET Request to URI
int Hydrogen.Core.WebPool.GET |
( |
string |
URI, |
|
|
System.Action< int, Hashtable, string > |
callback |
|
) |
| |
HTTP GET Request to URI
- Parameters
-
URI | The Target URI |
callback | A callback function (int hash, Hashtable headers, string payload). |
- Returns
- Call Hashcode
Definition at line 105 of file WebPool.cs.
107 return GET (URI, null, callback);
*< returns > Call Hashcode</returns > *int GET(string URI)
HTTP GET Request to URI
int Hydrogen.Core.WebPool.GET |
( |
string |
URI, |
|
|
string |
cookie, |
|
|
System.Action< int, Hashtable, string > |
callback |
|
) |
| |
HTTP GET Request to URI
- Parameters
-
URI | The Target URI |
cookie | Any previous cookie data to be used for authentication. |
callback | A callback function (int hash, Hashtable headers, string payload). |
- Returns
- Call Hashcode
Definition at line 117 of file WebPool.cs.
120 Debug.LogError (
"WebPool has not finished initializing ... " +
121 "Did you call this function without having either a WebPool or ObjectPool component " +
122 "already on a MonoBehaviour?");
125 GameObject go = _poolReference.Spawn (_poolID);
126 return go.GetComponent<WebPoolWorker> ().
GET (URI, cookie, callback);
*< returns > Call Hashcode</returns > *int GET(string URI)
HTTP GET Request to URI
void Hydrogen.Core.WebPool.POST |
( |
string |
URI, |
|
|
string |
contentType, |
|
|
string |
payload |
|
) |
| |
HTTP POST Request to URI.
- Parameters
-
URI | The Target URI |
contentType | The Content-Type Header |
payload | The data to be posted. |
- Returns
- Call Hashcode
Definition at line 136 of file WebPool.cs.
138 POST (URI, contentType, payload, null, null);
void POST(string URI, string contentType, string payload)
HTTP POST Request to URI.
void Hydrogen.Core.WebPool.POST |
( |
string |
URI, |
|
|
string |
contentType, |
|
|
string |
payload, |
|
|
string |
cookie, |
|
|
System.Action< int, Hashtable, string > |
callback |
|
) |
| |
HTTP POST Request to URI.
- Parameters
-
URI | The Target URI |
contentType | The Content-Type Header |
payload | The data to be posted. |
cookie | Any previous cookie data to be used for authentication. |
callback | A callback function (int hash, Hashtable headers, string payload). |
- Returns
- Call Hashcode
Definition at line 150 of file WebPool.cs.
153 UnityEngine.Debug.LogError (
"WebPool has not finished initializing ... " +
154 "Did you call this function without having either a WebPool or ObjectPool component " +
155 "already on a MonoBehaviour?");
158 GameObject go = _poolReference.Spawn (_poolID);
159 go.GetComponent<WebPoolWorker> ().
POST (URI, contentType, payload, cookie, callback);
void POST(string URI, string contentType, string payload)
HTTP POST Request to URI.