Method Request
Request(String, Action<String>, Int32, Int32, Boolean)
Send a GET request using the given URI.
Declaration
public static IEnumerator Request(string uri, Action<string> onComplete, int startRange, int endRange, bool hideErrorMessage = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | URI to be used in the request. |
Action<System.String> | onComplete | Callback function, uses the request's downloaded text as the parameter. |
System.Int32 | startRange | Starting byte to download. |
System.Int32 | endRange | Ending byte to download. |
System.Boolean | hideErrorMessage | Hides the error message from displaying if there was a connection issue. |
Returns
Type | Description |
---|---|
IEnumerator |
Request(String, Action<String>)
Declaration
public static IEnumerator Request(string uri, Action<string> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | |
Action<System.String> | onComplete |
Returns
Type | Description |
---|---|
IEnumerator |