Class UnityWebRequestRestConnector
Inheritance
object
UnityWebRequestRestConnector
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
public class UnityWebRequestRestConnector : IRestConnector
Methods
Declaration
protected void AddHeaders(UnityWebRequest req, Dictionary<string, string> headers)
Parameters
Type |
Name |
Description |
UnityWebRequest |
req |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Declaration
public virtual Task<WebResponse<string>> DeleteAsync(string uri, Dictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
string |
uri |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Returns
Declaration
public virtual Task<WebResponse<string>> GetAsync(string uri, Dictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
string |
uri |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Returns
PostAsync(string, byte[], Dictionary<string, string>)
Declaration
public virtual Task<WebResponse<string>> PostAsync(string uri, byte[] postData, Dictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
string |
uri |
|
byte[] |
postData |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Returns
PostAsync(string, string, Dictionary<string, string>)
Declaration
public virtual Task<WebResponse<string>> PostAsync(string uri, string putJson, Dictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
string |
uri |
|
string |
putJson |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Returns
PostPutDataAsync(string, string, byte[], string, Dictionary<string, string>)
Declaration
protected Task<WebResponse<string>> PostPutDataAsync(string uri, string method, byte[] data, string contentType, Dictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
string |
uri |
|
string |
method |
|
byte[] |
data |
|
string |
contentType |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Returns
Declaration
public virtual Task<WebResponse<string>> PutAsync(string uri, byte[] putData, Dictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
string |
uri |
|
byte[] |
putData |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Returns
Declaration
public virtual Task<WebResponse<string>> PutAsync(string uri, string putJson, Dictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
string |
uri |
|
string |
putJson |
|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
headers |
|
Returns
Implements