Interface IRestConnector
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
Syntax
public interface IRestConnector
Methods
DeleteAsync(String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> DeleteAsync(string uri, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
GetAsync(String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> GetAsync(string uri, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
PostAsync(String, Byte[], Dictionary<String, String>)
Declaration
Task<WebResponse<string>> PostAsync(string uri, byte[] postData, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
Byte[] | postData | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
PostAsync(String, String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> PostAsync(string uri, string postData, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
String | postData | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
PutAsync(String, String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> PutAsync(string uri, string postData, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
String | postData | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |