Property | Type | Description | |
---|---|---|---|
_data | |||
_queryVars | string>.Dictionary | ||
_webRequest |
Method | Description | |
---|---|---|
Begin ( ) : UnityTask |
||
Query ( string>.Dictionary |
Sets all the query string pairs of this request.
|
|
Query ( string key, string value ) : |
Sets the value of a query string in this request.
|
|
Send ( |
Sets the body data of the request as a JSON object. This method assumes the use of the application/x-www-form-urlencoded data type (UnityAgentFormDataType) and will append the data each time this method is called seperated by an ampersand. To set a custom data type use the other overloads.
|
|
Send ( |
Sets the data of a request. This is a low level method. You would usually one of the other overloads of this method to send text or JSON data.
|
|
Send ( string data ) : |
Sets the body data of the request as a string. This method assumes the use of the application/x-www-form-urlencoded data type (UnityAgentFormDataType) and will append the data each time this method is called seperated by an ampersand. To set a custom data type use the other overloads.
|
|
Set ( string>.Dictionary |
Sets all the headers of this request.
|
|
Set ( string key, string value ) : |
Sets the value of a header in this request. Returns this UnityAgentRequest object so that calls can be chained.
|
|
UnityAgentRequest ( string verb, string url ) : System |
public Query ( string>.Dictionary |
||
queryVars | string>.Dictionary | |
return |
public Query ( string key, string value ) : |
||
key | string | The key of the query string pair.. |
value | string | The value of the query string pair. |
return |
public Send ( |
||
data | The body data of the request. | |
return |
public Send ( |
||
data | ||
return |
public Send ( string data ) : |
||
data | string | The body data of the request. |
return |
public Set ( string>.Dictionary |
||
headers | string>.Dictionary | |
return |
public Set ( string key, string value ) : |
||
key | string | The name of the header (the key). |
value | string | The value of the header |
return |
public UnityAgentRequest ( string verb, string url ) : System | ||
verb | string | |
url | string | |
return | System |